diff --git a/src/system/common.func.php b/src/system/common.func.php index 6e60ffa7..9d8627cb 100755 --- a/src/system/common.func.php +++ b/src/system/common.func.php @@ -65,7 +65,11 @@ if (version_compare(PHP_VERSION, '7.0.0', '>=')) { if (!function_exists('mysql_close') and function_exists('mysqli_close')) { 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')) {