Replaced all mysql_free_result by db_free_result, except for the directory /install

This commit is contained in:
Dmitriy Simushev 2011-11-10 16:31:12 +00:00
parent ef94a7eaf8
commit a923a3cfdc
2 changed files with 5 additions and 5 deletions

View File

@ -416,7 +416,7 @@ function select_one_row($query, $link)
{ {
$result = perform_query($query, $link); $result = perform_query($query, $link);
$line = db_fetch_assoc($result); $line = db_fetch_assoc($result);
mysql_free_result($result); db_free_result($result);
return $line; return $line;
} }
@ -428,7 +428,7 @@ function select_multi_assoc($query, $link)
while ($row = db_fetch_assoc($sqlresult)) { while ($row = db_fetch_assoc($sqlresult)) {
$result[] = $row; $result[] = $row;
} }
mysql_free_result($sqlresult); db_free_result($sqlresult);
return $result; 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); $result = perform_query(db_build_select("count(" . ($countfields ? $countfields : "*") . ")", $table, $conditions, ""), $link);
$line = db_fetch_row($result); $line = db_fetch_row($result);
mysql_free_result($result); db_free_result($result);
return $line[0]; return $line[0];
} }
@ -713,7 +713,7 @@ function loadsettings_($link)
$settings[$name] = $row['vcvalue']; $settings[$name] = $row['vcvalue'];
$settings_in_db[$name] = true; $settings_in_db[$name] = true;
} }
mysql_free_result($sqlresult); db_free_result($sqlresult);
} }
function loadsettings() function loadsettings()

View File

@ -44,7 +44,7 @@ if ($query !== false) {
while ($group = db_fetch_assoc($result)) { while ($group = db_fetch_assoc($result)) {
$groupName[$group['groupid']] = $group['vclocalname']; $groupName[$group['groupid']] = $group['vclocalname'];
} }
mysql_free_result($result); db_free_result($result);
$page['groupName'] = $groupName; $page['groupName'] = $groupName;
$escapedQuery = db_escape_string($query, $link); $escapedQuery = db_escape_string($query, $link);