I think uploading packs is more or less working. I nutted out a few bugs in a lot...
[rock.divinelegy.git] / DataAccess / DataMapper / Helpers / VOMapsHelper.php
index 497d5fe..9a1f2cc 100644 (file)
@@ -48,10 +48,11 @@ class VOMapsHelper
     {\r
         $className = $maps[$this->_voName]['class'];\r
         $table = $maps[$this->_voName]['table'];\r
-\r
+        \r
         // If the table we already have contains the id of a row we need in\r
         // another table        \r
-        if(isset($row[$this->_tableName . '_id'])) {\r
+        //if(isset($row[$this->_tableName . '_id'])) {\r
+        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\r
             $join_id = $row[$this->_tableName . '_id'];\r
             $statement = $db->prepare(sprintf('SELECT * from %s WHERE id=%u',\r
                 $table,\r