fixed error when moving user to disbled group

This commit is contained in:
root@zabbix.znil.net 2021-02-06 12:34:56 +01:00
parent 8d2aaad188
commit f9f4ba504e

View File

@ -1294,7 +1294,8 @@ if [ "$b_Must_Sync_Users" = "true" ]; then
fi
tempvar=""
# maybe the list is empty! So we have to check
if [ "$list_of_userids" != "" ]; then list_of_userids=${list_of_userids::-1}; fi
# if [ "$list_of_userids" != "" ]; then list_of_userids=${list_of_userids::-1}; fi
list_of_userids=""
for (( i=0; i < ${#new_ZABBIX_ARRAY_disabled_User_userid[*]}; i++ )); do
list_of_userids+='"'${new_ZABBIX_ARRAY_disabled_User_userid[$i]}'"'
list_of_userids+=","