From 704f111bc362b3dd5b1553d2bcea46ef675537d2 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 15 Feb 2011 20:54:09 +0000 Subject: 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 --- engine/lib/elgglib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3