Remove superfluous variable assignments
This commit is contained in:
@@ -29,11 +29,9 @@ final class NodaSourceFulltextSync {
|
||||
|
||||
if ($result->num_rows === 0) {
|
||||
$result->close();
|
||||
$result = null;
|
||||
return;
|
||||
}
|
||||
$result->close();
|
||||
$result = null;
|
||||
|
||||
$this->_mysqli_noda->do_update_query_large("DELETE FROM `source_fulltext_search`
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `source`
|
||||
@@ -60,7 +58,6 @@ final class NodaSourceFulltextSync {
|
||||
|
||||
if ($result->num_rows === 0) {
|
||||
$result->close();
|
||||
$result = null;
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -73,7 +70,6 @@ final class NodaSourceFulltextSync {
|
||||
$toUpdate[$source_id] = $cur;
|
||||
}
|
||||
$result->close();
|
||||
$result = null;
|
||||
|
||||
$authorsResult = $this->_mysqli_noda->do_read_query("SELECT `source_author`.`source_id`, `persinst_anzeigename` AS `name`
|
||||
FROM `persinst`, `source_author`
|
||||
@@ -89,7 +85,6 @@ final class NodaSourceFulltextSync {
|
||||
else $authors[$source_id][] = $cur['name'];
|
||||
}
|
||||
$authorsResult->close();
|
||||
$authorsResult = null;
|
||||
|
||||
$newEntries = [];
|
||||
|
||||
@@ -131,7 +126,6 @@ final class NodaSourceFulltextSync {
|
||||
}
|
||||
|
||||
$updateStmt->close();
|
||||
$updateStmt = null;
|
||||
|
||||
if (count($toUpdate) > 1) {
|
||||
$this->_mysqli_noda->commit();
|
||||
|
Reference in New Issue
Block a user