dont crash when neldb is missing
This commit is contained in:
botanic 2014-09-11 10:50:34 -07:00
parent 95910f0a4f
commit 6e8a345ad6

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