aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2006-05-31 21:44:46 +0000
committerplegall <plg@piwigo.org>2006-05-31 21:44:46 +0000
commitcfbadffe5facc16a1690aa1528a3996d0619baa9 (patch)
tree62461f5375776bedd0e75604cd771ac1d8599d59 /include
parentb2e246ae80208ac4703bd1a96e0a61c0400e77e2 (diff)
merge -r1329:1330 from branch 1.5 to trunk (bug 378 fixed).
git-svn-id: http://piwigo.org/svn/trunk@1331 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_user.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 90fda9e55..a2ca7086e 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -345,10 +345,10 @@ SELECT id
}
if ( empty($forbidden_array) )
- {// 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
+ {// at least, the list contains 0 value. This category does not exists so
+ // where clauses such as "WHERE category_id NOT IN(0)" will always be
// true.
- array_push($forbidden_array, '-1');
+ array_push($forbidden_array, 0);
}
return implode(',', $forbidden_array);
@@ -647,4 +647,4 @@ function is_adviser()
return ($user['adviser'] == 'true');
}
-?> \ No newline at end of file
+?>