From: rettenbe Date: Tue, 3 Jun 2008 12:17:02 +0000 (+0000) Subject: bugfix: clMessages.pm: handle an empty content of HOOK msgs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b2677403ee01ee8afabf70486c937686c50f0cc;p=gosa.git bugfix: clMessages.pm: handle an empty content of HOOK msgs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11172 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/clMessages.pm b/gosa-si/server/events/clMessages.pm index fc2ab4aab..02104d105 100644 --- a/gosa-si/server/events/clMessages.pm +++ b/gosa-si/server/events/clMessages.pm @@ -516,7 +516,7 @@ sub HOOK { # test whether content is an empty hash or a string which is required my $content = @{$msg_hash->{$header}}[0]; - if(ref($content) eq "HASH") { $content = ""; } + if(not ref($content) eq "STRING") { $content = ""; } my $sql_statement = "UPDATE $main::job_queue_tn ". "SET status='processing', result='$header "."$content' ".