Update frontend.php

Slight cleanup of the bugfix