aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index af98d1cb3..fb482c3aa 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -1057,6 +1057,7 @@ function update_path()
$query = '
SELECT DISTINCT(storage_category_id)
FROM '.IMAGES_TABLE.'
+ WHERE storage_category_id IS NOT NULL
;';
$cat_ids = array_from_query($query, 'storage_category_id');
$fulldirs = get_fulldirs($cat_ids);