From 6edc5e1439623e192ba85862f943e450fbd11180 Mon Sep 17 00:00:00 2001 From: Junichi Satoh Date: Wed, 7 Dec 2016 17:29:04 +0900 Subject: [PATCH] Fixed warnings. --- pandora_console/include/db/mysql.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/db/mysql.php b/pandora_console/include/db/mysql.php index b4eee468b9..86cf8387d4 100644 --- a/pandora_console/include/db/mysql.php +++ b/pandora_console/include/db/mysql.php @@ -28,8 +28,12 @@ function mysql_connect_db($host = null, $db = null, $user = null, $pass = null, if ($port === null) $port = $config["dbport"]; - if ($config["mysqli"] === null && extension_loaded(mysqli)) + if ($config["mysqli"] === null && extension_loaded(mysqli)) { $config["mysqli"] = true; + } + else { + $config["mysqli"] = false; + } // Non-persistent connection: This will help to avoid mysql errors like "has gone away" or locking problems // If you want persistent connections change it to mysql_pconnect().