From 03ff0189069f18febae17bcdc450d965cb079fc6 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Fri, 5 Oct 2012 09:38:47 -0400 Subject: [PATCH] Fix isset 'bug'. Init. like =array() results in isset being positive --- include/class.filter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class.filter.php b/include/class.filter.php index ce7d7d92c..bbf8e5a24 100644 --- a/include/class.filter.php +++ b/include/class.filter.php @@ -677,7 +677,8 @@ class TicketFilter { * return immediately. */ function getMatchingFilterList() { - if (!isset($this->short_list)) { + + if (!$this->short_list) { $this->short_list = array(); foreach ($this->filters as $filter) if ($filter->matches($this->vars)) -- GitLab