diff --git a/includes/db_pager.inc b/includes/db_pager.inc index e3f3b167a..beda03683 100644 --- a/includes/db_pager.inc +++ b/includes/db_pager.inc @@ -290,7 +290,7 @@ class db_pager { $group = $this->group; $order = $this->order; - if(count($this->extra_where)) { + if($this->extra_where && count($this->extra_where) > 0) { $where .= ($where=='' ? '' : ' AND ') .implode(' AND ', $this->extra_where); }