mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08: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,8 +55,13 @@ class timezone extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
$converted++;
|
$converted++;
|
||||||
|
|
||||||
|
// 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'];
|
$update_blocks[$row['user_timezone'] . ':' . $row['user_dst']][] = (int) $row['user_id'];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$this->db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
|
|
||||||
// Update blocks of users who share the same timezone/dst
|
// Update blocks of users who share the same timezone/dst
|
||||||
|
|
Loading…
Add table
Reference in a new issue