[ticket/11301] Fix "String offset cast occured" error on 5.4

http://tracker.phpbb.com/browse/PHPBB3-11301