From ac39d8a06f422887cf256d77a096c03783dd349e Mon Sep 17 00:00:00 2001 From: brettp Date: Sun, 13 Feb 2011 16:46:48 +0000 Subject: Additional checking in ElggBatch for valid key. git-svn-id: http://code.elgg.org/elgg/trunk@8200 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggBatch.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engine/classes/ElggBatch.php') 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); } -- cgit v1.2.3