diff options
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r-- | system/core/Loader.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index e75578ae8..07e572950 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -950,6 +950,11 @@ class CI_Loader { * other views can have access to these variables. */ + // init current _ci_vars + if (!is_array($_ci_vars)) { + $_ci_vars = []; + } + // merge with global cached vars (first call) or last state from nested // call stack (subsequent nested calls) if (!empty($this->_ci_vars_stack)) { |