Fixed PHP error on settings page