X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/f5bd735685abcb6d4af18906fcfc3c922b386bd9..ba224fe1e6f6212651818538d7770690d821bfe0:/lib/MECON/Tiempo/Banda.php?ds=sidebyside diff --git a/lib/MECON/Tiempo/Banda.php b/lib/MECON/Tiempo/Banda.php index 4ab49b8..bbaea3b 100644 --- a/lib/MECON/Tiempo/Banda.php +++ b/lib/MECON/Tiempo/Banda.php @@ -48,7 +48,7 @@ class MECON_Tiempo_Banda { $dsn = "mysql://intranet:intranet@intranet-db.mecon.ar/bandas"; $db =& DB::connect($dsn , true); if(DB::isError($db)) - die($db->getMessage()); + trigger_error($db->getMessage(), E_USER_ERROR); $funcion = $db->getOne( "SELECT E.funcion @@ -69,7 +69,7 @@ class MECON_Tiempo_Banda { ORDER BY A.hora"; $result = $db->query($query); if(DB::isError($result)) - die($result->getMessage()); + trigger_error($result->getMessage(), E_USER_ERROR); if($funcion != 'SE') {//Version tough $int = null;