Skip to content

Commit

Permalink
Fix typing error MX_Loader - thank @johnnyxlemonade
Browse files Browse the repository at this point in the history
  • Loading branch information
713uk13m authored and 713uk13m committed Oct 27, 2018
1 parent 322242c commit 9dfc72c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Hmvc/Loader.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

namespace nguyenanhung\CodeIgniter\HMVC\Hmvc;

defined('BASEPATH') OR exit('No direct script access allowed');

/**
Expand Down Expand Up @@ -261,7 +262,7 @@ public function view($view, $vars = [], $return = FALSE)
if (method_exists($this, '_ci_object_to_array')) {
return $this->_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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9dfc72c

Please sign in to comment.