Browse Source

Update common.func.php

tags/6.2.6
叙述、别离 1 year ago
parent
commit
d87c3cdc20
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/system/common.func.php

+ 5
- 1
src/system/common.func.php View File

@@ -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')) {


Loading…
Cancel
Save