Some more forgotten DBA::close
This commit is contained in:
parent
9ccdbd9349
commit
f75009c20c
14 changed files with 24 additions and 3 deletions
|
@ -96,6 +96,7 @@ class Transmitter
|
|||
while ($contact = DBA::fetch($contacts)) {
|
||||
$list[] = $contact['url'];
|
||||
}
|
||||
DBA::close($contacts);
|
||||
|
||||
if (!empty($list)) {
|
||||
$data['next'] = DI::baseUrl() . '/followers/' . $owner['nickname'] . '?page=' . ($page + 1);
|
||||
|
@ -145,6 +146,7 @@ class Transmitter
|
|||
while ($contact = DBA::fetch($contacts)) {
|
||||
$list[] = $contact['url'];
|
||||
}
|
||||
DBA::close($contacts);
|
||||
|
||||
if (!empty($list)) {
|
||||
$data['next'] = DI::baseUrl() . '/following/' . $owner['nickname'] . '?page=' . ($page + 1);
|
||||
|
|
|
@ -124,6 +124,7 @@ class Diaspora
|
|||
while ($server = DBA::fetch($servers)) {
|
||||
$serverlist[$server['url']] = $server['url'];
|
||||
}
|
||||
DBA::close($servers);
|
||||
|
||||
// All tags of the current post
|
||||
$condition = ['otype' => Term::OBJECT_TYPE_POST, 'type' => Term::HASHTAG, 'oid' => $parent['parent']];
|
||||
|
@ -132,6 +133,7 @@ class Diaspora
|
|||
while ($tag = DBA::fetch($tags)) {
|
||||
$taglist[] = $tag['term'];
|
||||
}
|
||||
DBA::close($tags);
|
||||
|
||||
// All servers who wants content with this tag
|
||||
$tagserverlist = [];
|
||||
|
@ -140,6 +142,7 @@ class Diaspora
|
|||
while ($server = DBA::fetch($tagserver)) {
|
||||
$tagserverlist[] = $server['gserver-id'];
|
||||
}
|
||||
DBA::close($tagserver);
|
||||
}
|
||||
|
||||
// All adresses with the given id
|
||||
|
@ -148,6 +151,7 @@ class Diaspora
|
|||
while ($server = DBA::fetch($servers)) {
|
||||
$serverlist[$server['url']] = $server['url'];
|
||||
}
|
||||
DBA::close($servers);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1720,6 +1724,7 @@ class Diaspora
|
|||
while ($contact = DBA::fetch($contacts)) {
|
||||
Contact::remove($contact["id"]);
|
||||
}
|
||||
DBA::close($contacts);
|
||||
|
||||
DBA::delete('gcontact', ['addr' => $author]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue