From e90d20d2be0a7ac9ab11d7a36e1f0bbd28985023 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 3 Dec 2005 22:03:58 +0000 Subject: - merge -r965:966 from branches/branch-1_5 into trunk (bug 224 fixed) git-svn-id: http://piwigo.org/svn/trunk@967 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