From 110e213b5f6c5368b5ac8f3cd1067898b2eac03e Mon Sep 17 00:00:00 2001 From: Jaap Rood Date: Tue, 10 Sep 2013 18:32:36 +1000 Subject: [PATCH] Revert "Removing unneeded fix in last commit." This reverts commit 37ea2e2a545af6e312986638480998ef7d848d61. --- lib/ResqueScheduler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ResqueScheduler.php b/lib/ResqueScheduler.php index d744c5b..644ba4b 100644 --- a/lib/ResqueScheduler.php +++ b/lib/ResqueScheduler.php @@ -223,7 +223,7 @@ public static function nextDelayedTimestamp($at = null) $at = self::getTimestamp($at); } - $items = Resque::redis()->zrangebyscore('delayed_queue_schedule', '-inf', $at, 'LIMIT', 0, 1); + $items = Resque::redis()->zrangebyscore('delayed_queue_schedule', '-inf', $at, array('limit' => array(0, 1))); if (!empty($items)) { return $items[0]; }