- 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
This commit is contained in:
plegall 2005-12-03 22:02:01 +00:00
parent 0e02f343e8
commit 844506eccf

View file

@ -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