From a923a3cfdc668555dafd55cbdca1d5a8da63c74e Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 10 Nov 2011 16:31:12 +0000 Subject: [PATCH] Replaced all mysql_free_result by db_free_result, except for the directory /install --- src/messenger/webim/libs/common.php | 8 ++++---- src/messenger/webim/operator/history.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index a1088de7..c5e3bcf6 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -416,7 +416,7 @@ function select_one_row($query, $link) { $result = perform_query($query, $link); $line = db_fetch_assoc($result); - mysql_free_result($result); + db_free_result($result); return $line; } @@ -428,7 +428,7 @@ function select_multi_assoc($query, $link) while ($row = db_fetch_assoc($sqlresult)) { $result[] = $row; } - mysql_free_result($sqlresult); + db_free_result($sqlresult); return $result; } @@ -443,7 +443,7 @@ function db_rows_count($table, $conditions, $countfields, $link) { $result = perform_query(db_build_select("count(" . ($countfields ? $countfields : "*") . ")", $table, $conditions, ""), $link); $line = db_fetch_row($result); - mysql_free_result($result); + db_free_result($result); return $line[0]; } @@ -713,7 +713,7 @@ function loadsettings_($link) $settings[$name] = $row['vcvalue']; $settings_in_db[$name] = true; } - mysql_free_result($sqlresult); + db_free_result($sqlresult); } function loadsettings() diff --git a/src/messenger/webim/operator/history.php b/src/messenger/webim/operator/history.php index 608e33f8..b4b00398 100644 --- a/src/messenger/webim/operator/history.php +++ b/src/messenger/webim/operator/history.php @@ -44,7 +44,7 @@ if ($query !== false) { while ($group = db_fetch_assoc($result)) { $groupName[$group['groupid']] = $group['vclocalname']; } - mysql_free_result($result); + db_free_result($result); $page['groupName'] = $groupName; $escapedQuery = db_escape_string($query, $link);