mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Merge pull request #29 from salimane/upstream
fix bug whereby jobs are reserved based on an erroneous payload
This commit is contained in:
commit
a4e3a07946
@ -84,7 +84,7 @@ class Resque_Job
|
||||
public static function reserve($queue)
|
||||
{
|
||||
$payload = Resque::pop($queue);
|
||||
if(!$payload) {
|
||||
if(!is_object($payload)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user