aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions_user.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 8c02f3324..eca9530cf 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -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);
}