From 9e1bd4fcb81feb8303434025a0721d028594d865 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 6 Oct 2015 17:00:21 +0000 Subject: [PATCH] use same egw_exception_db_connection instead of die, if no DB host set, so it can be cought --- phpgwapi/inc/class.egw_db.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index c7a842bdf6..b3d249d485 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -378,7 +378,7 @@ class egw_db } if (!isset($e)) { - die('No DB Host set!'); + $e = new egw_exception_db_connection('No DB host set!'); } throw $e; }