Skip to content

Commit

Permalink
Merge pull request #8 from macopedia/fix_treshold_notice
Browse files Browse the repository at this point in the history
Fix error when calling method on non object when filters are disabled.
  • Loading branch information
LeeSaferite committed Nov 14, 2014
2 parents ea5c7af + 196d8a4 commit 4ba117c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/community/Varien/Profiler.php
Expand Up @@ -521,7 +521,7 @@ public static function checkThresholds()
{
$conf = self::getConfiguration();
$totals = self::getTotals();
return (!$conf->filters->timeThreshold || $totals['time'] > $conf->filters->timeThreshold) &&
return !$conf->enableFilters || (!$conf->filters->timeThreshold || $totals['time'] > $conf->filters->timeThreshold) &&
(!$conf->filters->memoryThreshold || $totals['realmem'] > $conf->filters->memoryThreshold);
}

Expand Down

0 comments on commit 4ba117c

Please sign in to comment.