Use empty array for foreach() when no group is to be set, always commit when editing domains, and report any errors while commiting.
Use empty array for foreach() when no group is to be set, always commit when editing domains, and report any errors while commiting.

Signed-off-by: DL6ER <f7a4d550238822df8b2dd9e9927a8c5c3184173e@dl6er.de>

jacobsalmela/AdminLTE,jacobsalmela/AdminLTE,jacobsalmela/AdminLTE,jacobsalmela/AdminLTE