MongoDB: Consolidate code

This commit is contained in:
Jakub Vrana 2018-05-04 15:49:36 +02:00
parent c3cfc0e69b
commit db11fa4c1a

View file

@ -622,8 +622,7 @@ if (isset($_GET["mongo"])) {
$connection->_link = $connection->connect("mongodb://$server", $options);
return $connection;
} catch (Exception $ex) {
$connection->error = $ex->getMessage();
return $connection->error;
return $ex->getMessage();
}
}