Skip to content

Commit

Permalink
Revert "(legacy) remove caching of filter interfaces, likely suspect of
Browse files Browse the repository at this point in the history
#451"

This reverts commit 2f863fa.
  • Loading branch information
fichtner committed Nov 25, 2015
1 parent 8cce826 commit c3a85ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/etc/inc/filter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,12 @@ function filter_generate_optcfg_array()
{
global $config, $FilterIflist;

// Nasty hack to avoid unkown status of $FilterIflist, every piece of code using $FilterIflist should use
// this function to retrieve it's content.
if (isset($FilterIflist) && is_array($FilterIflist) && count($FilterIflist) > 0) {
return $FilterIflist;
}

$FilterIflist = array();

/* if list */
Expand Down

0 comments on commit c3a85ba

Please sign in to comment.