diff options
author | Chris Faulkner <cfaulkner@users.noreply.github.com> | 2017-01-10 06:32:40 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-01-10 11:31:10 +0100 |
commit | 9c07c3697bab0bf43e10daf59068497dd3a0a9fd (patch) | |
tree | 9fe3936ff14b570f03e11d80dea0347350dc6ac5 /system | |
parent | 52ba26b622b4e58d9511818f8625e77313d680e2 (diff) |
Fix Undefined variable: object error
Change the undefined variable $object to $vars when calling get_object_vars().
This fixes an error when passing an object to a view.
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Loader.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 17ff2362c..acfc739dd 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -1368,7 +1368,7 @@ class CI_Loader { * Prepare variables for _ci_vars, to be later extract()-ed inside views * * Converts objects to associative arrays and filters-out internal - * variable names (i.e. keys prexied with '_ci_'). + * variable names (i.e. keys prefixed with '_ci_'). * * @param mixed $vars * @return array @@ -1378,7 +1378,7 @@ class CI_Loader { if ( ! is_array($vars)) { $vars = is_object($vars) - ? get_object_vars($object) + ? get_object_vars($vars) : array(); } |