mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:10:12 +00:00
Improved dba calls
- Removed intval calls - Used boolean values for params when relevant
This commit is contained in:
parent
9ddb81ce5f
commit
ced1063a10
3 changed files with 13 additions and 13 deletions
|
@ -80,7 +80,7 @@ class Queue
|
|||
|
||||
$q_item = $r[0];
|
||||
|
||||
$contact = dba::select('contact', [], ['id' => intval($q_item['cid'])], ['limit' => 1]);
|
||||
$contact = dba::select('contact', [], ['id' => $q_item['cid']], ['limit' => 1]);
|
||||
if (!DBM::is_result($contact)) {
|
||||
remove_queue_item($q_item['id']);
|
||||
return;
|
||||
|
@ -113,7 +113,7 @@ class Queue
|
|||
}
|
||||
}
|
||||
|
||||
$user = dba::select('user', [], ['uid' => intval($contact['uid'])], ['limit' => 1]);
|
||||
$user = dba::select('user', [], ['uid' => $contact['uid']], ['limit' => 1]);
|
||||
if (!DBM::is_result($user)) {
|
||||
remove_queue_item($q_item['id']);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue