Fix problems where adminMenus method is passed a url as string

Fix problems where adminMenus method is passed a url as string but can only deal with arrays