Cannot share polls with other users

Hello all,

I am not able to share polls with other nextcloud users, the search bar stays empty. Creating an external link is working without any problems.

The nextcloud logs show the following error message:

 in_array() expects parameter 2 to be array, null given

Nextcloud version: 22.1.0
Polls version: 3.0.0

The output of your Nextcloud log in Admin > Logging:

	Exception: in_array() expects parameter 2 to be array, null given

    /volume1/web/nextcloud/lib/private/AppFramework/App.php - line 156:

    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Polls\Co ... {}, "userSearch")

    /volume1/web/nextcloud/lib/private/Route/Router.php - line 301:

    OC\AppFramework\App::main("OCA\\Polls\ ... r", "userSearch", OC\AppFramew ... {}, { query: "ad ... "})

    /volume1/web/nextcloud/lib/base.php - line 1000:

    OC\Route\Router->match("/apps/polls ... n")

    /volume1/web/nextcloud/index.php - line 36:

    OC::handleRequest()

Verursacht durch TypeError: in_array() expects parameter 2 to be array, null given

    /volume1/web/nextcloud/apps/circles/lib/Collaboration/v2/CollaboratorSearchPlugin.php - line 101:

    in_array(10, null)

    /volume1/web/nextcloud/lib/private/Collaboration/Collaborators/Search.php - line 72:

    OCA\Circles\Collaboration\v2\CollaboratorSearchPlugin->search("admin", 200, 0, OC\Collabora ... {})

    /volume1/web/nextcloud/apps/polls/lib/Model/UserGroupClass.php - line 192:

    OC\Collaboration\Collaborators\Search->search("admin", [ 0,1,7], false, 200, 0)

    /volume1/web/nextcloud/apps/polls/lib/Service/SystemService.php - line 109:

    OCA\Polls\Model\UserGroupClass::search("admin")

    /volume1/web/nextcloud/apps/polls/lib/Controller/SystemController.php - line 54:

    OCA\Polls\Service\SystemService->getSiteUsersAndGroups("admin")

    /volume1/web/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 217:

    OCA\Polls\Controller\SystemController->userSearch("admin")

    /volume1/web/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 126:

    OC\AppFramework\Http\Dispatcher->executeController(OCA\Polls\Co ... {}, "userSearch")

    /volume1/web/nextcloud/lib/private/AppFramework/App.php - line 156:

    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Polls\Co ... {}, "userSearch")

    /volume1/web/nextcloud/lib/private/Route/Router.php - line 301:

    OC\AppFramework\App::main("OCA\\Polls\ ... r", "userSearch", OC\AppFramew ... {}, { query: "ad ... "})

    /volume1/web/nextcloud/lib/base.php - line 1000:

    OC\Route\Router->match("/apps/polls ... n")

    /volume1/web/nextcloud/index.php - line 36:

    OC::handleRequest()

Any ideas how to solve the issue.

Thank you in advance.

Please update to the current Polls version and check that again.