From: ewinslow Date: Tue, 15 Feb 2011 20:54:09 +0000 (+0000) Subject: Fixes #2695: Return false on autoload fail, rather than throwing exception X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=704f111bc362b3dd5b1553d2bcea46ef675537d2;p=lorea%2Felgg.git 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 --- 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; } }