mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 12:34:27 +02:00
Rename DBA::is_result to DBA::isResult
This commit is contained in:
parent
0ec44f3e8a
commit
ecea7425f8
152 changed files with 765 additions and 765 deletions
|
@ -19,7 +19,7 @@ class Queue
|
|||
{
|
||||
logger('queue: requeue item ' . $id);
|
||||
$queue = DBA::selectFirst('queue', ['retrial'], ['id' => $id]);
|
||||
if (!DBA::is_result($queue)) {
|
||||
if (!DBA::isResult($queue)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ class Queue
|
|||
intval($cid)
|
||||
);
|
||||
|
||||
$was_delayed = DBA::is_result($r);
|
||||
$was_delayed = DBA::isResult($r);
|
||||
|
||||
// We set "term-date" to a current date if the communication has problems.
|
||||
// If the communication works again we reset this value.
|
||||
|
@ -68,7 +68,7 @@ class Queue
|
|||
$r = q("SELECT `term-date` FROM `contact` WHERE `id` = %d AND `term-date` <= '1000-01-01' LIMIT 1",
|
||||
intval($cid)
|
||||
);
|
||||
$was_delayed = !DBA::is_result($r);
|
||||
$was_delayed = !DBA::isResult($r);
|
||||
}
|
||||
|
||||
return $was_delayed;
|
||||
|
@ -98,7 +98,7 @@ class Queue
|
|||
intval($cid)
|
||||
);
|
||||
|
||||
if (DBA::is_result($r)) {
|
||||
if (DBA::isResult($r)) {
|
||||
if ($batch && ($r[0]['total'] > $batch_queue)) {
|
||||
logger('too many queued items for batch server ' . $cid . ' - discarding message');
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue