[ticket/11363] Undo semantics error introduced by previous PR for ticket/11363

Semantics error introduced in https://github.com/phpbb/phpbb3/pull/1255 causes the if() to do nothing; the following block of code is run regardless.

http://tracker.phpbb.com/browse/PHPBB3-11363