LSldapObject::validateAttrData(): fix fatal errors on missing formated log messages

This commit is contained in:
Benjamin Renard 2021-01-28 16:57:51 +01:00
parent 2fec564d91
commit fadfe2d2ba

View file

@ -542,7 +542,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
self :: log_warning( self :: log_warning(
"validateAttrData(".$LSform->idForm.", ".$attr->name."): ". "validateAttrData(".$LSform->idForm.", ".$attr->name."): ".
"validation with LDAP search on base DN='$sbasedn' and ". "validation with LDAP search on base DN='$sbasedn' and ".
"filter='".$sfilter->as_string()."' error ($ret object(s) found)" "filter='".($sfilter?$sfilter->as_string():null)."' error ($ret object(s) found)"
); );
if ($LSform) if ($LSform)
$LSform -> setElementError($attr, $msg_error); $LSform -> setElementError($attr, $msg_error);
@ -551,7 +551,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
self :: log_trace( self :: log_trace(
"validateAttrData(".$LSform->idForm.", ".$attr->name."): ". "validateAttrData(".$LSform->idForm.", ".$attr->name."): ".
"validation with LDAP search on base DN='$sbasedn' and ". "validation with LDAP search on base DN='$sbasedn' and ".
"filter='".$sfilter->as_string()."' success ($ret object(s) found)" "filter='".($sfilter?$sfilter->as_string():null)."' success ($ret object(s) found)"
); );
} }
} }