[ticket/9758] Removed useless if-conditions to include functions.php

PHPBB3-9758