Fix for ticket 11976

[Master] Code to fix the warnings reported in the ticket

The actual issue at hand in this ticket is that the first parameter is no 
longer used by the functions and the developers apparently wanted to keep 
legacy code working. I'm unsure which is preferable, dummy code to 
suppress a warning or a warning. This will fix the warning thrown but creates 
a few lines of code that does nothing. 

PHPBB3-11976