aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-01-22 17:18:14 +0000
committermistic100 <mistic@piwigo.org>2014-01-22 17:18:14 +0000
commit597be89274c80b8b4c87ec84730e2f516e5fe6f4 (patch)
tree089e38e2c736cc3a2d18d49cb69a69befcc9d29c
parent9ee07221ecc2a6907e05ffbee9c6a707d3e749a9 (diff)
bug 2989: fix r26905
git-svn-id: http://piwigo.org/svn/trunk@26907 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/include/functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 36fc9d93e..75ae7084c 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -785,6 +785,7 @@ function get_fulldirs($cat_ids)
}
// caching directories of existing categories
+ global $cat_dirs; // used in preg_replace callback
$query = '
SELECT id, dir
FROM '.CATEGORIES_TABLE.'
@@ -824,6 +825,8 @@ SELECT id, uppercats, site_id
);
}
+ unset($cat_dirs);
+
return $cat_fulldirs;
}