diff options
Diffstat (limited to 'phpBB/phpbb/cron/task')
| -rw-r--r-- | phpBB/phpbb/cron/task/core/update_hashes.php | 6 | ||||
| -rw-r--r-- | phpBB/phpbb/cron/task/text_reparser/reparser.php | 4 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/phpBB/phpbb/cron/task/core/update_hashes.php b/phpBB/phpbb/cron/task/core/update_hashes.php index a4fe477d99..ba095abc8b 100644 --- a/phpBB/phpbb/cron/task/core/update_hashes.php +++ b/phpBB/phpbb/cron/task/core/update_hashes.php @@ -111,9 +111,9 @@ class update_hashes extends \phpbb\cron\task\base  				// Increase number so we know that users were selected from the database  				$affected_rows++; -				$sql = 'UPDATE ' . USERS_TABLE . ' -					SET user_password = "' . $this->db->sql_escape($new_hash) . '" -					WHERE user_id = ' . (int) $row['user_id']; +				$sql = 'UPDATE ' . USERS_TABLE . " +					SET user_password = '" . $this->db->sql_escape($new_hash) . "' +					WHERE user_id = " . (int) $row['user_id'];  				$this->db->sql_query($sql);  			} diff --git a/phpBB/phpbb/cron/task/text_reparser/reparser.php b/phpBB/phpbb/cron/task/text_reparser/reparser.php index 69392f5ac9..fa3bc67325 100644 --- a/phpBB/phpbb/cron/task/text_reparser/reparser.php +++ b/phpBB/phpbb/cron/task/text_reparser/reparser.php @@ -85,7 +85,7 @@ class reparser extends \phpbb\cron\task\base  		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)  		{ -			$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']) | 
