mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
MongoDB: Consolidate code
This commit is contained in:
@@ -622,8 +622,7 @@ if (isset($_GET["mongo"])) {
|
|||||||
$connection->_link = $connection->connect("mongodb://$server", $options);
|
$connection->_link = $connection->connect("mongodb://$server", $options);
|
||||||
return $connection;
|
return $connection;
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
$connection->error = $ex->getMessage();
|
return $ex->getMessage();
|
||||||
return $connection->error;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user