From 79561aef771e6ccc323aa328f12826294a48724d Mon Sep 17 00:00:00 2001 From: Christian Mohr Date: Wed, 3 Jan 2018 19:43:02 +0100 Subject: fixed case without parameter Signed-off-by: Christian Mohr --- system/core/Loader.php | 5 +++++ 1 file changed, 5 insertions(+) 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)) { -- cgit v1.2.3-24-g4f1b