]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/PushSubscriber.php
Changed to null-coalscing style (??) as sugguested by @MrPetovan
[friendica.git] / src / Model / PushSubscriber.php
index c48f71356709ea3b7ed78cbeff972a5353f80201..51d48d9b23a8f78354e2bf11896e18ccb7037bac 100644 (file)
@@ -54,7 +54,7 @@ class PushSubscriber
        {
                // We'll push to each subscriber that has push > 0,
                // i.e. there has been an update (set in notifier.php).
-               $subscribers = DBA::select('push_subscriber', ['id', 'push', 'callback_url', 'nickname'], ["`push` > 0 AND `next_try` < UTC_TIMESTAMP()"]);
+               $subscribers = DBA::select('push_subscriber', ['id', 'push', 'callback_url', 'nickname'], ["`push` > 0 AND `next_try` < ?", DateTimeFormat::utcNow()]);
 
                while ($subscriber = DBA::fetch($subscribers)) {
                        // We always handle retries with low priority