aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-08 18:51:49 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-08 18:51:49 -0400
commit5e8e0700dbe1e933620f256443e7d18d258d7019 (patch)
treea72454419bda1cec18bf4a1fedfb0a453d803a5c /engine/lib
parent3b8dd0d70e2d16cee9c210a2949adc85f229d7d5 (diff)
downloadelgg-5e8e0700dbe1e933620f256443e7d18d258d7019.tar.gz
elgg-5e8e0700dbe1e933620f256443e7d18d258d7019.tar.bz2
need to check if something exists before checking its type
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 0d1d291f0..1469067ca 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -424,7 +424,7 @@ function elgg_bootstrap_externals_data_structure($type) {
$CONFIG->externals = array();
}
- if (!$CONFIG->externals[$type] instanceof ElggPriorityList) {
+ if (!isset($CONFIG->externals[$type]) || !$CONFIG->externals[$type] instanceof ElggPriorityList) {
$CONFIG->externals[$type] = new ElggPriorityList();
}