replaced mysqli_result::close() by ::free()

This commit is contained in:
Steffen Schröder
2014-05-18 23:34:47 +02:00
parent a6d9753cee
commit cb5ad4e077
7 changed files with 13 additions and 14 deletions

View File

@ -140,7 +140,7 @@ class Database implements TimerListener {
}
$count = $result->num_rows;
if ($count <= 0) {
$result->close();
$result->free();
return true;
}
$optimizeQuery = "OPTIMIZE TABLE ";
@ -153,7 +153,7 @@ class Database implements TimerListener {
}
$index++;
}
$result->close();
$result->free();
$optimizeQuery .= ";";
$this->mysqli->query($optimizeQuery);
if ($this->mysqli->error) {