From 844506eccf3f6b8ecf3f95b6de2a28d4cf5f802d Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 3 Dec 2005 22:02:01 +0000 Subject: - bug 224 fixed: if no categories to synchronize (no directory in "galleries" directory), crash on information retrieval from pictures uploaded by users. git-svn-id: http://piwigo.org/svn/branches/branch-1_5@966 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/update.php b/admin/update.php index 93e4f300f..bb7133000 100644 --- a/admin/update.php +++ b/admin/update.php @@ -469,7 +469,7 @@ SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_element_id echo ' -->'."\n"; // retrieving informations given by uploaders - if (!$simulate) + if (!$simulate and count($cat_ids) > 0) { $query = ' SELECT id,file,storage_category_id,infos -- cgit v1.2.3