X-Git-Url: https://git.llucax.com/mecon/ai.git/blobdiff_plain/df9d0deaca85d998cd966a75db730202e0f7c993..6295690d016e83a22cd0f402e8ac71c3d35ca4a1:/lib/AI/DBObject.php?ds=sidebyside diff --git a/lib/AI/DBObject.php b/lib/AI/DBObject.php index 8d8297c..7c162c8 100644 --- a/lib/AI/DBObject.php +++ b/lib/AI/DBObject.php @@ -74,7 +74,7 @@ class AI_DBObject { */ function cargar($db) // ~X2C { - $id_field = $this->conf['id']; + $id_field = $this->conf['id']; $id = intval($this->$id_field); if (is_a($db, 'db_result')) { $result = $db; @@ -97,9 +97,9 @@ class AI_DBObject { "No hay más resultados en la DB [id=$id]"); } // Asigno valores al objeto. - foreach ($row as $key => $val) { - $this->$key = $val; - } + foreach ($row as $key => $val) { + $this->$key = $val; + } return true; } // -X2C