From 65f46063afcebbe92a8ad67d9092bb073f79b8ce Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Thu, 21 Aug 2008 18:55:09 +0000 Subject: Added a bit more error trapping in the load() function --- system/libraries/Loader.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'system') diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index e090cc09c..1d88841dd 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -79,6 +79,11 @@ class CI_Loader { return FALSE; } + if ( ! is_null($params) AND ! is_array($params)) + { + $params = NULL; + } + if (is_array($library)) { foreach ($library as $class) -- cgit v1.2.3-24-g4f1b