mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 17:13:49 +00:00
Remove mysql_connect as it is marked as deprecated.
This commit is contained in:
@@ -180,10 +180,6 @@ if ($db_type == "sqlite") {
|
||||
if ($db_type == "mysql") {
|
||||
//database connection
|
||||
try {
|
||||
//required for mysql_real_escape_string
|
||||
if (function_exists(mysql_connect)) {
|
||||
$mysql_connection = mysql_connect($db_host, $db_username, $db_password);
|
||||
}
|
||||
//mysql pdo connection
|
||||
if (strlen($db_host) == 0 && strlen($db_port) == 0) {
|
||||
//if both host and port are empty use the unix socket
|
||||
|
||||
Reference in New Issue
Block a user