From: Cash Costello Date: Sat, 8 Oct 2011 22:51:49 +0000 (-0400) Subject: need to check if something exists before checking its type X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5e8e0700dbe1e933620f256443e7d18d258d7019;p=lorea%2Felgg.git need to check if something exists before checking its type --- 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(); }