X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/19062a773ac6436434e7539c1e43fd911f15733c..ba466154033d54821e07ab851bccc42e8e344fe9:/sistema/local_lib/Servicios/Agenda.php diff --git a/sistema/local_lib/Servicios/Agenda.php b/sistema/local_lib/Servicios/Agenda.php index 9587c46..2559603 100644 --- a/sistema/local_lib/Servicios/Agenda.php +++ b/sistema/local_lib/Servicios/Agenda.php @@ -226,6 +226,9 @@ class Servicios_Agenda { $consulta = 'select cod_edificio, desc_edificio from agenda.edificios where cod_edificio <> 13 order by desc_edificio'; $dbh = $db->prepare($consulta); $res = $db->execute($dbh); + if (PEAR::isError($res)) { + return $res; + } while ($re = $res->fetchrow(DB_FETCHMODE_ASSOC)) { $rta[$re['cod_edificio']] = $re['desc_edificio']; }