Rename DBA::is_result to DBA::isResult
This commit is contained in:
committed by
Hypolite Petovan
parent
0ec44f3e8a
commit
ecea7425f8
@@ -73,7 +73,7 @@ class PushSubscriber
|
||||
if ($subscribe) {
|
||||
// if we are just updating an old subscription, keep the
|
||||
// old values for last_update but reset the push
|
||||
if (DBA::is_result($subscriber)) {
|
||||
if (DBA::isResult($subscriber)) {
|
||||
$last_update = $subscriber['last_update'];
|
||||
$push_flag = min($subscriber['push'], 1);
|
||||
} else {
|
||||
@@ -103,7 +103,7 @@ class PushSubscriber
|
||||
public static function delay($id)
|
||||
{
|
||||
$subscriber = DBA::selectFirst('push_subscriber', ['push', 'callback_url', 'renewed', 'nickname'], ['id' => $id]);
|
||||
if (!DBA::is_result($subscriber)) {
|
||||
if (!DBA::isResult($subscriber)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ class PushSubscriber
|
||||
public static function reset($id, $last_update)
|
||||
{
|
||||
$subscriber = DBA::selectFirst('push_subscriber', ['callback_url', 'nickname'], ['id' => $id]);
|
||||
if (!DBA::is_result($subscriber)) {
|
||||
if (!DBA::isResult($subscriber)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user