(cp 0ad1d2894) fixes #1569 No more infinite spin when unseting default groups

This commit is contained in:
Matthieu Leproux
2021-11-24 11:14:50 +01:00
parent 15d6de0291
commit 52a30cb1d3
+1 -1
View File
@@ -131,7 +131,7 @@ function ws_groups_setInfo($params, &$service)
return new PwgError(403, 'Invalid security token');
}
if (strlen(str_replace( " ", "", $params['name'])) == 0) {
if (isset($params['name']) && strlen(str_replace( " ", "", $params['name'])) == 0) {
return new PwgError(WS_ERR_INVALID_PARAM, 'Name field must not be empty');
}