Remove 'PHP notices' from onapp.php