diff --git a/include/dblayer/functions_mysqli.inc.php b/include/dblayer/functions_mysqli.inc.php index 63d2babbf..84390f1c8 100644 --- a/include/dblayer/functions_mysqli.inc.php +++ b/include/dblayer/functions_mysqli.inc.php @@ -47,7 +47,7 @@ function pwg_db_connect($host, $user, $password, $database) list($host, $port) = explode(':', $host); } - $dbname = null; + $dbname = ''; $mysqli = new mysqli($host, $user, $password, $dbname, $port, $socket); if (mysqli_connect_error())