mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:50:10 +00:00
Fix undefined variable/wrong parameter count/unknown functions
This commit is contained in:
parent
4b5894817e
commit
2978b1eef0
16 changed files with 36 additions and 33 deletions
|
@ -55,7 +55,7 @@ class Queue
|
|||
*/
|
||||
$r = q("SELECT `id` FROM `queue` WHERE ((`created` > UTC_TIMESTAMP() - INTERVAL 12 HOUR AND `last` < UTC_TIMESTAMP() - INTERVAL 15 MINUTE) OR (`last` < UTC_TIMESTAMP() - INTERVAL 1 HOUR)) ORDER BY `cid`, `created`");
|
||||
|
||||
call_hooks('queue_predeliver', $a, $r);
|
||||
call_hooks('queue_predeliver', $r);
|
||||
|
||||
if (DBM::is_result($r)) {
|
||||
foreach ($r as $q_item) {
|
||||
|
@ -166,7 +166,7 @@ class Queue
|
|||
|
||||
default:
|
||||
$params = array('owner' => $owner, 'contact' => $contact, 'queue' => $q_item, 'result' => false);
|
||||
call_hooks('queue_deliver', $a, $params);
|
||||
call_hooks('queue_deliver', $params);
|
||||
|
||||
if ($params['result']) {
|
||||
remove_queue_item($q_item['id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue