From: brettp Date: Sun, 13 Feb 2011 16:46:48 +0000 (+0000) Subject: Additional checking in ElggBatch for valid key. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ac39d8a06f422887cf256d77a096c03783dd349e;p=lorea%2Felgg.git Additional checking in ElggBatch for valid key. git-svn-id: http://code.elgg.org/elgg/trunk@8200 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/classes/ElggBatch.php b/engine/classes/ElggBatch.php index 0429e94ff..96a35f238 100644 --- a/engine/classes/ElggBatch.php +++ b/engine/classes/ElggBatch.php @@ -339,6 +339,9 @@ class ElggBatch * @return bool */ public function valid() { + if (!is_array($this->results)) { + return false; + } $key = key($this->results); return ($key !== NULL && $key !== FALSE); }