Fixed PHP warnings in admincp.plugins.php, thanks to @julianrupp