init options to empty array for list of users

This commit is contained in:
Uwe Steinmann 2023-03-14 12:09:45 +01:00
parent 33fe05fc6e
commit f1211f6c80

View File

@ -462,6 +462,7 @@ $(document).ready( function() {
else
$userids = [$task->getParameter()[$param['name']]];
$users = $dms->getAllUsers();
$options = [];
foreach ($users as $currUser) {
if (!$currUser->isGuest())
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin().' - '.$currUser->getFullName()), in_array($currUser->getID(), $userids), array(array('data-subtitle', htmlspecialchars($currUser->getEmail()))));