mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 12:33:29 +01:00
[ticket/11881] Make sure user_timezone isn't converted twice
PHPBB3-11881
This commit is contained in:
parent
9653276ebc
commit
cd7d29b90e
@ -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…
x
Reference in New Issue
Block a user