diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-10-08 18:51:49 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-10-08 18:51:49 -0400 |
commit | 5e8e0700dbe1e933620f256443e7d18d258d7019 (patch) | |
tree | a72454419bda1cec18bf4a1fedfb0a453d803a5c | |
parent | 3b8dd0d70e2d16cee9c210a2949adc85f229d7d5 (diff) | |
download | elgg-5e8e0700dbe1e933620f256443e7d18d258d7019.tar.gz elgg-5e8e0700dbe1e933620f256443e7d18d258d7019.tar.bz2 |
need to check if something exists before checking its type
-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 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(); } |