From 8f4374f142a1f588c42b2a7b21cd5259c67d955a Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Thu, 19 Feb 2015 14:12:27 +0800 Subject: [PATCH] Bugfix --- DataAccess/DataMapper/Helpers/VOMapsHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataAccess/DataMapper/Helpers/VOMapsHelper.php b/DataAccess/DataMapper/Helpers/VOMapsHelper.php index 575d95e..61c7d4a 100644 --- a/DataAccess/DataMapper/Helpers/VOMapsHelper.php +++ b/DataAccess/DataMapper/Helpers/VOMapsHelper.php @@ -53,7 +53,7 @@ class VOMapsHelper // If the table we already have contains the id of a row we need in // another table //if(isset($row[$this->_tableName . '_id'])) { - if(array_key_exists($this->_tableName . '_id', $row)) { //this is a better choice as somtimes the array key is set, but is equal to null, and isset doesn't like that + if($row && array_key_exists($this->_tableName . '_id', $row)) { //this is a better choice as somtimes the array key is set, but is equal to null, and isset doesn't like that $join_id = $row[$this->_tableName . '_id']; $statement = $db->prepare(sprintf('SELECT * from %s WHERE id=%u', $table, -- 2.11.0