X-Git-Url: https://git.llucax.com/mecon/ai.git/blobdiff_plain/df9d0deaca85d998cd966a75db730202e0f7c993..bfe3892532ac5e8ef2828b9e5c7a645ec3d77976:/lib/AI/DBObject.php diff --git a/lib/AI/DBObject.php b/lib/AI/DBObject.php index 8d8297c..4cc93e7 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 @@ -112,7 +112,6 @@ class AI_DBObject { * * @return PEAR_Error * @access public - * @static */ function guardar($db, $datos, $nuevo = false) // ~X2C {