Fix some mistakes I made in https://tracker.phpbb.com/browse/PHPBB3-15827 ,
at PR https://github.com/phpbb/phpbb/pull/5401 .
A Pull request will be made on github.
PR made here : https://github.com/phpbb/phpbb/pull/5570
Apology for the same.
Best Regards.