Some more forgotten DBA::close

This commit is contained in:
Michael 2020-04-28 07:10:18 +00:00
parent 9ccdbd9349
commit f75009c20c
14 changed files with 24 additions and 3 deletions

View file

@ -102,6 +102,7 @@ class DBSync extends BaseAdmin
$failed[] = $upd;
}
}
DBA::close($configStmt);
if (!count($failed)) {
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('admin/dbsync/structure_check.tpl'), [

View file

@ -121,6 +121,7 @@ class Site extends BaseAdmin
while ($user = DBA::fetch($usersStmt)) {
Worker::add(PRIORITY_HIGH, 'Notifier', Delivery::RELOCATION, $user['uid']);
}
DBA::close($usersStmt);
info("Relocation started. Could take a while to complete.");

View file

@ -125,6 +125,7 @@ class Delegation extends BaseSettings
while ($contact = DBA::fetch($contacts)) {
$nicknames[] = $contact['nick'];
}
DBA::close($contacts);
// get user records for all potential page delegates who are not already delegates or managers
$potentialDelegateUsers = DBA::selectToArray('user', ['uid', 'username', 'nickname'], ['nickname' => $nicknames]);