From 5b7c761bbf1c962ec328c7c307529c58ba74e084 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Tue, 2 Nov 2004 23:25:27 +0000 Subject: 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 --- admin/include/functions_metadata.php | 5 +++++ 1 file changed, 5 insertions(+) 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.' -- cgit v1.2.3