commit | 65f46063afcebbe92a8ad67d9092bb073f79b8ce | [log] [tgz] |
---|---|---|
author | Rick Ellis <rick.ellis@ellislab.com> | Thu Aug 21 18:55:09 2008 +0000 |
committer | Rick Ellis <rick.ellis@ellislab.com> | Thu Aug 21 18:55:09 2008 +0000 |
tree | 3c35016b09f9799f5627bcc5dc0e5b2b1dc679b8 | |
parent | 6ad532917aa69d86db70f0da4a3b196003926fe9 [diff] [blame] |
Added a bit more error trapping in the load() function
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index e090cc0..1d88841 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php
@@ -79,6 +79,11 @@ return FALSE; } + if ( ! is_null($params) AND ! is_array($params)) + { + $params = NULL; + } + if (is_array($library)) { foreach ($library as $class)