aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-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.'