From d846041b272ef43ddafe9d35416e47b3d12e6439 Mon Sep 17 00:00:00 2001 From: Svemir Brkic Date: Fri, 14 Oct 2011 21:51:04 -0400 Subject: [PATCH] If id field is not there, do not attempt to key array on it --- src/storage/lisk/dao/LiskDAO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/lisk/dao/LiskDAO.php b/src/storage/lisk/dao/LiskDAO.php index ea9a6a04fb..e2562cc1a8 100644 --- a/src/storage/lisk/dao/LiskDAO.php +++ b/src/storage/lisk/dao/LiskDAO.php @@ -593,7 +593,7 @@ abstract class LiskDAO { foreach ($rows as $row) { $obj = clone $this; - if ($id_key) { + if ($id_key && isset($row[$id_key])) { $result[$row[$id_key]] = $obj->loadFromArray($row); } else { $result[] = $obj->loadFromArray($row);