From 4b2677403ee01ee8afabf70486c937686c50f0cc Mon Sep 17 00:00:00 2001 From: rettenbe Date: Tue, 3 Jun 2008 12:17:02 +0000 Subject: [PATCH] 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 --- gosa-si/server/events/clMessages.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ". -- 2.30.2