From: Cameron Ball Date: Thu, 19 Feb 2015 06:12:27 +0000 (+0800) Subject: Bugfix X-Git-Url: http://git.cameron1729.xyz/?p=rock.divinelegy.git;a=commitdiff_plain;h=8f4374f142a1f588c42b2a7b21cd5259c67d955a Bugfix --- 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,