diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 20:54:09 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 20:54:09 +0000 |
commit | 704f111bc362b3dd5b1553d2bcea46ef675537d2 (patch) | |
tree | d1b2b0bd4515470639a5766f4d136c520d0ab730 | |
parent | 05858d88d09f7594e427cde3fca8cdafa8bcae68 (diff) | |
download | elgg-704f111bc362b3dd5b1553d2bcea46ef675537d2.tar.gz elgg-704f111bc362b3dd5b1553d2bcea46ef675537d2.tar.bz2 |
Fixes #2695: Return false on autoload fail, rather than throwing exception
git-svn-id: http://code.elgg.org/elgg/trunk@8259 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/elgglib.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index e9ae8b0ad..a6de0bc67 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -23,7 +23,7 @@ function _elgg_autoload($class) { global $CONFIG; if (!isset($CONFIG->classes[$class]) || !include($CONFIG->classes[$class])) { - throw new Exception("Failed to autoload $class"); + return false; } } |