diff options
author | Tristan Darricau <github@nicofuma.fr> | 2016-10-09 21:37:30 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2016-11-02 19:38:33 +0100 |
commit | d90afa67d866e1be44d3a69c97497c8412695f8d (patch) | |
tree | 56c892af6d0e9c222e375b56d8999d61da8cf84a /phpBB/phpbb/cron/task | |
parent | 7bb4e88acdb0f45f8bfbad74b558db65524cbe1a (diff) | |
download | forums-d90afa67d866e1be44d3a69c97497c8412695f8d.tar forums-d90afa67d866e1be44d3a69c97497c8412695f8d.tar.gz forums-d90afa67d866e1be44d3a69c97497c8412695f8d.tar.bz2 forums-d90afa67d866e1be44d3a69c97497c8412695f8d.tar.xz forums-d90afa67d866e1be44d3a69c97497c8412695f8d.zip |
[ticket/14814] Fix reparser cron
PHPBB3-14814
Diffstat (limited to 'phpBB/phpbb/cron/task')
-rw-r--r-- | phpBB/phpbb/cron/task/text_reparser/reparser.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/cron/task/text_reparser/reparser.php b/phpBB/phpbb/cron/task/text_reparser/reparser.php index aa644de827..7099128efd 100644 --- a/phpBB/phpbb/cron/task/text_reparser/reparser.php +++ b/phpBB/phpbb/cron/task/text_reparser/reparser.php @@ -99,7 +99,7 @@ class reparser extends \phpbb\cron\task\base $this->reparser_manager->get_resume_data($this->reparser_name); } - if (empty($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']) { return true; } @@ -147,9 +147,9 @@ class reparser extends \phpbb\cron\task\base */ $reparser = $this->reparsers[$this->reparser_name]; - $min = !empty($this->resume_data['range-min']) ? $this->resume_data['range-min'] : self::MIN; - $current = !empty($this->resume_data['range-max']) ? $this->resume_data['range-max'] : $reparser->get_max_id(); - $size = !empty($this->resume_data['range-size']) ? $this->resume_data['range-size'] : self::SIZE; + $min = isset($this->resume_data['range-min']) ? $this->resume_data['range-min'] : self::MIN; + $current = isset($this->resume_data['range-max']) ? $this->resume_data['range-max'] : $reparser->get_max_id(); + $size = isset($this->resume_data['range-size']) ? $this->resume_data['range-size'] : self::SIZE; if ($current >= $min) { |