X-Git-Url: https://git.llucax.com/mecon/ai.git/blobdiff_plain/df9d0deaca85d998cd966a75db730202e0f7c993..bf3397e09f20d6ee9ea3bfeec51e56f24118aae9:/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