From 5bfbf55689d55d3754bde6bbb139001f6dade0be Mon Sep 17 00:00:00 2001 From: Cambell Date: Thu, 11 Nov 2021 20:56:29 +0700 Subject: [PATCH] Fix db_pager protect count($this->extra_where) - In _sql_gen protect for the case where the arg to count could be null --- includes/db_pager.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }