mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +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
1 changed files with 7 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue