diff options
author | plegall <plg@piwigo.org> | 2005-12-03 22:02:01 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-12-03 22:02:01 +0000 |
commit | 844506eccf3f6b8ecf3f95b6de2a28d4cf5f802d (patch) | |
tree | 79000a199bbe06591e76c4f6fd5f40af06c64f84 /admin/update.php | |
parent | 0e02f343e8dc0bb3e22b425d6a00645a67e4512f (diff) |
- 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
Diffstat (limited to 'admin/update.php')
-rw-r--r-- | admin/update.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |