Skip to content
Snippets Groups Projects
Commit f2ceda5a authored by Peter Rotich's avatar Peter Rotich
Browse files

Clear short_list using null to allow for isset use in memoized matches test.

parent efddddcf
No related branches found
No related tags found
No related merge requests found
......@@ -658,7 +658,7 @@ class TicketFilter {
//Clear any memoized filters
$this->filters = array();
$this->short_list = array();
$this->short_list = null;
//Query DB for "possibly" matching filters.
$res = $this->vars?$this->quickList():$this->getAllActive();
......@@ -681,7 +681,7 @@ class TicketFilter {
*/
function getMatchingFilterList() {
if (!$this->short_list) {
if (!isset($this->short_list)) {
$this->short_list = array();
foreach ($this->filters as $filter)
if ($filter->matches($this->vars))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment