|
@@ -65,7 +65,11 @@ if (version_compare(PHP_VERSION, '7.0.0', '>=')) { |
|
|
if (!function_exists('mysql_close') and function_exists('mysqli_close')) { |
|
|
if (!function_exists('mysql_close') and function_exists('mysqli_close')) { |
|
|
function mysql_close($link) |
|
|
function mysql_close($link) |
|
|
{ |
|
|
{ |
|
|
return mysqli_close($link); |
|
|
|
|
|
|
|
|
if ($link) { |
|
|
|
|
|
return @mysqli_close($link); |
|
|
|
|
|
} else { |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (!function_exists('mysql_free_result') and function_exists('mysqli_free_result')) { |
|
|
if (!function_exists('mysql_free_result') and function_exists('mysqli_free_result')) { |
|
|