mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11881] Make sure user_timezone isn't converted twice
PHPBB3-11881
This commit is contained in:
parent
9653276ebc
commit
cd7d29b90e
1 changed files with 6 additions and 1 deletions
|
@ -55,7 +55,12 @@ class timezone extends \phpbb\db\migration\migration
|
|||
{
|
||||
$converted++;
|
||||
|
||||
$update_blocks[$row['user_timezone'] . ':' . $row['user_dst']][] = (int) $row['user_id'];
|
||||
// In case this is somehow run twice on a row.
|
||||
// Otherwise it would just end up as UTC on the second run
|
||||
if (is_numeric($row['user_timezone']))
|
||||
{
|
||||
$update_blocks[$row['user_timezone'] . ':' . $row['user_dst']][] = (int) $row['user_id'];
|
||||
}
|
||||
}
|
||||
$this->db->sql_freeresult($result);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue