mirror of
https://github.com/Mibew/java.git
synced 2025-01-23 01:50:34 +03:00
Replaced all mysql_free_result by db_free_result, except for the directory /install
This commit is contained in:
parent
ef94a7eaf8
commit
a923a3cfdc
@ -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()
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user