X-Git-Url: https://git.llucax.com/mecon/ai.git/blobdiff_plain/5b17fa3433d7dbe0033db473d10fe617df5f6057..refs/heads/master:/sistema/www/index.php?ds=inline 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 {