From 5e8e0700dbe1e933620f256443e7d18d258d7019 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 8 Oct 2011 18:51:49 -0400 Subject: need to check if something exists before checking its type --- engine/lib/elgglib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/elgglib.php') 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(); } -- cgit v1.2.3