From 15324ca410ebc963e116a9b3815b94dbc026d388 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Mon, 10 Sep 2012 10:23:18 +0200 Subject: [PATCH] Fixed bug --- lib/Resque.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque.php b/lib/Resque.php index 7478fa4..928ef5e 100644 --- a/lib/Resque.php +++ b/lib/Resque.php @@ -119,7 +119,7 @@ class Resque if($interval == null) { $item = self::redis()->lpop('queue:' . $queue); } else { - $item = self::redis()->blpop('queue:' . $queue, $interval ?: Resque::DEFAULT_INTERVAL); + $item = self::redis()->blpop('queue:' . $queue, $interval ? $interval : Resque::DEFAULT_INTERVAL); } if(!$item) {