mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:10:11 +00:00
Replace dba::select(limit => 1) by dba::selectOne
- Convert array declarations to new style
This commit is contained in:
parent
a2d3cee006
commit
da60893590
51 changed files with 206 additions and 219 deletions
|
@ -80,7 +80,7 @@ class Queue
|
|||
|
||||
$q_item = $r[0];
|
||||
|
||||
$contact = dba::select('contact', [], ['id' => $q_item['cid']], ['limit' => 1]);
|
||||
$contact = dba::selectOne('contact', [], ['id' => $q_item['cid']]);
|
||||
if (!DBM::is_result($contact)) {
|
||||
remove_queue_item($q_item['id']);
|
||||
return;
|
||||
|
@ -113,7 +113,7 @@ class Queue
|
|||
}
|
||||
}
|
||||
|
||||
$user = dba::select('user', [], ['uid' => $contact['uid']], ['limit' => 1]);
|
||||
$user = dba::selectOne('user', [], ['uid' => $contact['uid']]);
|
||||
if (!DBM::is_result($user)) {
|
||||
remove_queue_item($q_item['id']);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue