diff --git a/phpBB/phpbb/db/migration/data/v33x/profilefield_youtube_update.php b/phpBB/phpbb/db/migration/data/v33x/profilefield_youtube_update.php index 8436f1bd89..232e3b486f 100644 --- a/phpBB/phpbb/db/migration/data/v33x/profilefield_youtube_update.php +++ b/phpBB/phpbb/db/migration/data/v33x/profilefield_youtube_update.php @@ -30,7 +30,7 @@ class profilefield_youtube_update extends \phpbb\db\migration\migration $row = $this->db->sql_fetchrow($result); $this->db->sql_freeresult($result); - return $row['field_validation'] === $this->youtube_url_matcher; + return !$row || $row['field_validation'] === $this->youtube_url_matcher; } public static function depends_on()