From efefba10aeaaa7d31d1339e5db0f6a5425467631 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 5 Feb 2004 16:39:49 +0000 Subject: [PATCH] =?utf8?q?Se=20cambian=20los=20die(expr)=20por=20trigger?= =?utf8?q?=5Ferror(expr,=20E=5FUSER=5FERROR)=20para=20poder=20interceptarl?= =?utf8?q?os=20en=20producci=C3=B3n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sistema/www/index.php | 4 ++-- sistema/www/secciones_ocultas.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sistema/www/index.php b/sistema/www/index.php index b41957a..d547a0c 100644 --- a/sistema/www/index.php +++ b/sistema/www/index.php @@ -49,7 +49,7 @@ PEAR::setErrorHandling(PEAR_ERROR_RETURN); require_once 'AI/DB.php'; $db =& AI_DB::connect('../conf/DB.ini'); if (DB::isError($db)) { - die($db->getMessage()); + trigger_error($db->getMessage(), E_USER_ERROR); } // }}} @@ -150,7 +150,7 @@ if ($tipo) { if ($accion & (AI_BAJA | AI_MODIF)) { $err =& $obj->cargar($db); if (PEAR::isError($err)) { - die($err->getMessage()); + trigger_error($err->getMessage(), E_USER_ERROR); } $form->iniciar($obj, $accion, $db); } else { diff --git a/sistema/www/secciones_ocultas.php b/sistema/www/secciones_ocultas.php index 1c34f31..27177d6 100644 --- a/sistema/www/secciones_ocultas.php +++ b/sistema/www/secciones_ocultas.php @@ -53,7 +53,7 @@ PEAR::setErrorHandling(PEAR_ERROR_RETURN); require_once 'AI/DB.php'; $db =& AI_DB::connect('../conf/DB.ini'); if (DB::isError($db)) { - die($db->getMessage()); + trigger_error($db->getMessage(), E_USER_ERROR); } // }}} -- 2.43.0