dont crash when neldb is missing
This commit is contained in:
botanic 2014-09-11 10:50:34 -07:00
parent cafe41fa24
commit 92afe8e76a

View file

@ -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;
}
}
/**