mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +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") {
|
if ($db_type == "mysql") {
|
||||||
//database connection
|
//database connection
|
||||||
try {
|
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
|
//mysql pdo connection
|
||||||
if (strlen($db_host) == 0 && strlen($db_port) == 0) {
|
if (strlen($db_host) == 0 && strlen($db_port) == 0) {
|
||||||
//if both host and port are empty use the unix socket
|
//if both host and port are empty use the unix socket
|
||||||
|
|||||||
Reference in New Issue
Block a user