diff --git a/src/Hmvc/Loader.php b/src/Hmvc/Loader.php index 1307d29..fa7875a 100644 --- a/src/Hmvc/Loader.php +++ b/src/Hmvc/Loader.php @@ -1,6 +1,7 @@ _ci_load([ '_ci_view' => $view, - '_ci_vars' => $this->_ci_prepare_view_vars($vars), + '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return ]); } else { @@ -311,7 +312,7 @@ public function _ci_load($_ci_data) include($_ci_path); } log_message('debug', 'File loaded: ' . $_ci_path); - if ($_ci_return == TRUE) return ob_get_clean(); + if (isset($_ci_return) && $_ci_return == TRUE) return ob_get_clean(); if (ob_get_level() > $this->_ci_ob_level + 1) { ob_end_flush(); } else {