Fix footer displaying in "qi_functions.php" when "gen_error_msg()" is called

Due a bad copy/paste in a previous PR, the ```';``` are visible in the footer when ```gen_error_msg()``` is called.