Update app.php

Undefined index 'q' - fixed