[ticket/15379] Fix the assignments in reparser cron job

PHPBB3-15379
This commit is contained in:
Oliver Schramm 2017-09-25 17:46:00 +02:00
parent d095e620c1
commit 4069cdd518

View file

@ -85,7 +85,7 @@ class reparser extends \phpbb\cron\task\base
if ($this->resume_data === null) if ($this->resume_data === null)
{ {
$this->reparser_manager->get_resume_data($this->reparser_name); $this->resume_data = $this->reparser_manager->get_resume_data($this->reparser_name);
} }
} }
@ -96,7 +96,7 @@ class reparser extends \phpbb\cron\task\base
{ {
if ($this->resume_data === null) if ($this->resume_data === null)
{ {
$this->reparser_manager->get_resume_data($this->reparser_name); $this->resume_data = $this->reparser_manager->get_resume_data($this->reparser_name);
} }
if (!isset($this->resume_data['range-max']) || $this->resume_data['range-max'] >= $this->resume_data['range-min']) if (!isset($this->resume_data['range-max']) || $this->resume_data['range-max'] >= $this->resume_data['range-min'])