aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index e6bbb3c01..e8014f2a2 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -22,7 +22,7 @@ elgg_register_classes(dirname(dirname(__FILE__)) . '/classes');
function _elgg_autoload($class) {
global $CONFIG;
- if (!include($CONFIG->classes[$class])) {
+ if (!isset($CONFIG->classes[$class]) || !include($CONFIG->classes[$class])) {
throw new Exception("Failed to autoload $class");
}
}
@@ -85,7 +85,7 @@ function elgg_register_library($name, $location) {
/**
* Load a php library.
*
- * @param string $name The name of the library
+ * @param string $name The name of the library
*
* @return void
* @throws InvalidParameterException