bug 378 fixed: category_id can't be -1 because the field is an unsigned

integer.


git-svn-id: http://piwigo.org/svn/branches/branch-1_5@1330 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2006-05-31 21:36:09 +00:00
parent 59d2febb48
commit 7f2fa28c7a
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -362,7 +362,10 @@ SELECT cat_id
// at least, the list contains -1 values. This category does not exists so
// where clauses such as "WHERE category_id NOT IN(-1)" will always be
// true.
array_push($forbidden_array, '-1');
if (count($forbidden_array) == 0)
{
array_push($forbidden_array, 0);
}
return implode(',', $forbidden_array);
}