aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-11-02 23:25:27 +0000
committerz0rglub <z0rglub@piwigo.org>2004-11-02 23:25:27 +0000
commit5b7c761bbf1c962ec328c7c307529c58ba74e084 (patch)
tree308602a26feaedc4f40e0f6ad965d4f2e7214501 /admin/include
parentb1db5e55ae77c1ce386b25f8083a8bdd88607a96 (diff)
bug correction : if no category found, no element to search in get_filelist
git-svn-id: http://piwigo.org/svn/trunk@590 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions_metadata.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php
index 42f34c4ff..0f9f090b5 100644
--- a/admin/include/functions_metadata.php
+++ b/admin/include/functions_metadata.php
@@ -297,6 +297,11 @@ SELECT id, uppercats
$uppercats_array[$row['id']] = $row['uppercats'];
}
+ if (count($uppercats_array) == 0)
+ {
+ return array();
+ }
+
$query = '
SELECT galleries_url
FROM '.SITES_TABLE.'