Steps to reproduce:
Given other than 0 and 1 value for hide_tag_log parameter on a log page. E.g. https://dev.razesoldier.cn/w/index.php?title=Special:Log&hide_tag_log=2, this page shows
PHP Notice: Undefined offset: -1 in mediawiki/w/includes/logging/LogEventsList.php on line 185
Current version: 1.31.0-rc.0 (b05a169)