From 6e8a345ad6ae840433f2f2b17f60d69d370c41a1 Mon Sep 17 00:00:00 2001 From: botanic Date: Thu, 11 Sep 2014 10:50:34 -0700 Subject: [PATCH] FIX #200 dont crash when neldb is missing --- .../ams/plugins/Domain_Management/Domain_Management.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/web/private_php/ams/plugins/Domain_Management/Domain_Management.php b/code/web/private_php/ams/plugins/Domain_Management/Domain_Management.php index 6fb933b68..888112c65 100644 --- a/code/web/private_php/ams/plugins/Domain_Management/Domain_Management.php +++ b/code/web/private_php/ams/plugins/Domain_Management/Domain_Management.php @@ -67,6 +67,8 @@ function domain_management_hook_get_db() { global $domain_management_return_set; + try { + $db = new DBLayer( 'shard' ); //get all domains @@ -91,6 +93,10 @@ function domain_management_hook_get_db() } return $rows; + + } catch (Exception $e) { + return null; + } } /**