Skip to content

Commit 60b5dd8

Browse files
committed
Fix issue with previous commit.
1 parent f7cc9aa commit 60b5dd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/core/Loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,13 +501,13 @@ public function view($view, $vars = array(), $return = FALSE)
501501
$measure = "View - $view";
502502
$CI =& get_instance();
503503

504-
if ($CI->debugbar) {
504+
if (property_exists($CI, "debugbar") && $CI->debugbar) {
505505
$CI->debugbar["time"]->startMeasure($measure);
506506
}
507507

508508
$result = $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_prepare_view_vars($vars), '_ci_return' => $return));
509509

510-
if ($CI->debugbar) {
510+
if (property_exists($CI, "debugbar") && $CI->debugbar && $CI->debugbar["time"]->hasStartedMeasure($measure)) {
511511
$CI->debugbar["time"]->stopMeasure($measure);
512512
}
513513

0 commit comments

Comments
 (0)