aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_default.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2009-02-05 03:03:30 +0000
committerrvelices <rv-github@modusoptimus.com>2009-02-05 03:03:30 +0000
commite34c68cb891bf7382958056d4d3c9e56cf6f4a43 (patch)
treef9e92716b4729704b8a4e57c09eb182ab16f1436 /include/category_default.inc.php
parente71d84ebfbb3659a08ff4034f0f35113d7243a6d (diff)
- embellish_url compacts now ..
- some trigger improvements (render_category_description) - improved perf of duplicate_xxx_url ( rewrote func params_for_duplication and remove some vars from $page ) git-svn-id: http://piwigo.org/svn/trunk@3126 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/category_default.inc.php')
-rw-r--r--include/category_default.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index 804f2a5fa..c83d5cd00 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -27,8 +27,6 @@
*
*/
-$page['rank_of'] = array_flip($page['items']);
-
$pictures = array();
$selection = array_slice(
@@ -39,6 +37,8 @@ $selection = array_slice(
if (count($selection) > 0)
{
+ $rank_of = array_flip($page['items']);
+
$query = '
SELECT *
FROM '.IMAGES_TABLE.'
@@ -53,6 +53,7 @@ SELECT *
}
usort($pictures, 'rank_compare');
+ unset($rank_of);
}
if (count($pictures) > 0)