X-Git-Url: https://git.llucax.com/mecon/ai.git/blobdiff_plain/b526d86fed66b8450614b12a158c811366489fdd..efefba10aeaaa7d31d1339e5db0f6a5425467631:/sistema/www/index.php 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 {