diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-11-02 23:25:27 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-11-02 23:25:27 +0000 |
commit | 5b7c761bbf1c962ec328c7c307529c58ba74e084 (patch) | |
tree | 308602a26feaedc4f40e0f6ad965d4f2e7214501 /admin/include/functions_metadata.php | |
parent | b1db5e55ae77c1ce386b25f8083a8bdd88607a96 (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 'admin/include/functions_metadata.php')
-rw-r--r-- | admin/include/functions_metadata.php | 5 |
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.' |