No error reporting from sysuser & sysgroup validation (SOAP)
check_sysuser() & check_sysgroup() (in class validate_systemuser) return only "
\r\n" when the 'system_user' or 'system_group' is invalid during a SOAP call (e.g. to sites_web_domain_add()).
This means the error returned by SOAP is the unhelpful :
++++++++
SOAP Error:
++++++++
This is because these fns are missing the conditional test for 'wordbook' language translation; i.e.
return $app->tform->wordbook[$errmsg]."
\r\n";
should be :
if(isset($app->tform->wordbook[$errmsg])) {
return $app->tform->wordbook[$errmsg]."
\r\n";
} else {
return $errmsg."
\r\n";
}
as per the other functions in this class.
Thanks