From 9dfc72cef33a4afc6bb71dfd8751c6e0eade2474 Mon Sep 17 00:00:00 2001 From: 713uk13m <713uk13m@713uk13ms-MacBook-Pro.local> Date: Sat, 27 Oct 2018 10:42:55 +0700 Subject: [PATCH] Fix typing error MX_Loader - thank @johnnyxlemonade --- src/Hmvc/Loader.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {