Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #36 from bobbyshaw/patch-1
CaptureModelInfo may not exist
  • Loading branch information
fbrnc committed Sep 28, 2015
2 parents c20316f + ea03872 commit 4ecc104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/community/Varien/Profiler.php
Expand Up @@ -173,7 +173,7 @@ public static function start($name, $type = '')
'type' => $type,
);

if ($name == '__EAV_LOAD_MODEL__' && self::getConfiguration()->captureModelInfo) {
if ($name == '__EAV_LOAD_MODEL__' && !empty(self::getConfiguration()->captureModelInfo)) {
$trace = debug_backtrace();
$className = get_class($trace[1]['args'][0]);
$entityId = isset($trace[1]['args'][1]) ? $trace[1]['args'][1] : 'not set';
Expand Down

0 comments on commit 4ecc104

Please sign in to comment.