AutoAdminCheck is designed to return a value so that the server knows what level of admin to give the client. You will need to add a return statement to keep the function working properly, like this:
return parent::AutoAdminCheck(%this);
Note that a return statement will immediately end the function, so any code after a return will not execute.