[ticket/12422] Fix debug warning in log search

https://tracker.phpbb.com/browse/PHPBB3-12422