X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/f5bd735685abcb6d4af18906fcfc3c922b386bd9..06ddaedaa98e5ad18bd0a24dcf1313d7f4d2465b:/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;