mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +00:00
init options to empty array for list of users
This commit is contained in:
parent
33fe05fc6e
commit
f1211f6c80
|
@ -462,6 +462,7 @@ $(document).ready( function() {
|
||||||
else
|
else
|
||||||
$userids = [$task->getParameter()[$param['name']]];
|
$userids = [$task->getParameter()[$param['name']]];
|
||||||
$users = $dms->getAllUsers();
|
$users = $dms->getAllUsers();
|
||||||
|
$options = [];
|
||||||
foreach ($users as $currUser) {
|
foreach ($users as $currUser) {
|
||||||
if (!$currUser->isGuest())
|
if (!$currUser->isGuest())
|
||||||
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin().' - '.$currUser->getFullName()), in_array($currUser->getID(), $userids), array(array('data-subtitle', htmlspecialchars($currUser->getEmail()))));
|
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin().' - '.$currUser->getFullName()), in_array($currUser->getID(), $userids), array(array('data-subtitle', htmlspecialchars($currUser->getEmail()))));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user