Skip to content
Snippets Groups Projects
Commit fed4c34b authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FEAT #3210

parent fb454ffd
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ class Database extends functions ...@@ -50,7 +50,7 @@ class Database extends functions
public function __construct() public function __construct()
{ {
$args = func_get_args(); $args = func_get_args();
if (count($args) < 1) { if (count($args) < 1 || empty($args[0])) {
if (isset($_SESSION['config']['databaseserver'])) { if (isset($_SESSION['config']['databaseserver'])) {
$this->server = $_SESSION['config']['databaseserver']; $this->server = $_SESSION['config']['databaseserver'];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment