浏览代码

Update common.func.php

tags/6.2.6
叙述、别离 2 年前
父节点
当前提交
d87c3cdc20
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      src/system/common.func.php

+ 5
- 1
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')) { 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')) {


正在加载...
取消
保存