From 92afe8e76a189089e7f7f35e301e02227630a948 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; + } } /**