summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4aa8775)
raw | patch | inline | side by side (parent: 4aa8775)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Nov 2008 13:35:48 +0000 (13:35 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Nov 2008 13:35:48 +0000 (13:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12983 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/gosaTriggered.pm | patch | blob | history |
index 0598ffd2c02f81b5b994d0a21de61e6fbc6d632b..659557c08cf367d057da21835b8cd4638218c31c 100644 (file)
objectClass => $oclass,
);
my $oclass_result = $ldap_entry->update($ldap_handle);
- if ($oclass_result->code() != 0) {
+ if (defined($oclass_result) && $oclass_result->code() != 0) {
&main::daemon_log("$session_id ERROR: Adding the ObjectClass '$oclass' failed (code '".$oclass_result->code()."') with '".$oclass_result->{'errorMessage'}."'!", 1);
+ } else {
+ &main::daemon_log("$session_id ERROR: Adding the ObjectClass '$oclass' failed (no result)!", 1);
}
}
}
'FAIstate' => 'install'
);
my $replace_result = $ldap_entry->update($ldap_handle);
- if ($replace_result->code() != 0) {
+ if (defined($replace_result) && $replace_result->code() != 0) {
&main::daemon_log("$session_id ERROR: Setting the FAIstate to install failed with code '".$replace_result->code()."') and message '".$replace_result->{'errorMessage'}."'!", 1);
+ } else {
+ &main::daemon_log("$session_id ERROR: Setting the FAIstate to install failed (no result)!", 1);
}
}
} else {
'FAIstate' => 'install'
);
my $add_result = $ldap_entry->update($ldap_handle);
- if ($add_result->code() != 0) {
+ if (defined($add_result) && $add_result->code() != 0) {
&main::daemon_log("$session_id ERROR: Setting the FAIstate to install failed with code '".$add_result->code()."') and message '".$add_result->{'errorMessage'}."'!", 1);
+ } else {
+ &main::daemon_log("$session_id ERROR: Setting the FAIstate to install failed (no result)!", 1);
}
}