X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/974bd3b934543dc4465e16805a06a60d8e8d86cf..7eddd945e06d40240c52993be71ad52b9212f79e:/lib/MECON/Agente.php?ds=inline diff --git a/lib/MECON/Agente.php b/lib/MECON/Agente.php index d73ed05..aaa9977 100644 --- a/lib/MECON/Agente.php +++ b/lib/MECON/Agente.php @@ -188,7 +188,7 @@ class MECON_Agente { $this->agente = $agente; $sql = "SELECT * FROM novedades.web003 - WHERE nrodoc = $agente"; + WHERE nrodoc = ".$agente; $result = $this->_db->query($sql); if(DB::isError($result)) trigger_error($result->getMessage("query mal hecho"), E_USER_ERROR); @@ -197,7 +197,7 @@ class MECON_Agente { } else { $sql = "SELECT * FROM Contratados.Contratados - WHERE nrodoc = $agente"; + WHERE nrodoc = ".$agente; $result = $this->_db->query($sql); if(DB::isError($result)) { trigger_error($result->getMessage("query mal hecho"), E_USER_ERROR);