summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07e7aff)
raw | patch | inline | side by side (parent: 07e7aff)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Mar 2008 16:22:11 +0000 (16:22 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Mar 2008 16:22:11 +0000 (16:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9876 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/clMessages.pm | patch | blob | history |
index e14b2da46fc9451a6dd8a94905c0afb709b2d5b3..5cc1a4ea002c4c145d60120bc1ee71b2fdc95aa7 100644 (file)
my $macaddress = @{$msg_hash->{'macaddress'}}[0];
# test whether content is an empty hash or a string which is required
-# TODO eval ändern auf if(ref($content) eq "HASH") dann ... else, dann...
-# my $content = @{$msg_hash->{$header}}[0];
-# $content = "$content";
-# if(ref($content) eq "HASH") { $content = ""; }
-#
- eval{ if( 0 == keys(%$content) ) { $content = ""; } };
- if( $@ ) { $content = "$content"; }
+#########
+# testing
+ my $content = @{$msg_hash->{$header}}[0];
+ if(ref($content) eq "HASH") { $content = ""; }
+ #eval{ if( 0 == keys(%$content) ) { $content = ""; } };
+ #if( $@ ) { $content = "$content"; }
+# testing
+########
# clean up header
$header =~ s/CLMSG_//g;
my $content;
my $cont = @{$msg_hash->{$header}}[0];
# TODO eval ändern auf if(ref($content) eq "HASH") dann ... else, dann...
- eval{ if( 0 == keys(%$cont) ) { $content = ""; } };
- if( $@ ) { $content = "$cont"; }
+#########
+# testing
+ my $content = @{$msg_hash->{$header}}[0];
+ if(ref($content) eq "HASH") { $content = ""; }
+ #eval{ if( 0 == keys(%$content) ) { $content = ""; } };
+ #if( $@ ) { $content = "$content"; }
+# testing
+########
# clean up header
$header =~ s/CLMSG_//g;
# test whether content is an empty hash or a string which is required
my $content = @{$msg_hash->{$header}}[0];
# TODO eval ändern auf if(ref($content) eq "HASH") dann ... else, dann...
- eval{ if( 0 == keys(%$content) ) { $content = ""; } };
- if( $@ ) { $content = "$content"; }
+#########
+# testing
+ my $content = @{$msg_hash->{$header}}[0];
+ if(ref($content) eq "HASH") { $content = ""; }
+ #eval{ if( 0 == keys(%$content) ) { $content = ""; } };
+ #if( $@ ) { $content = "$content"; }
+# testing
+#########
# clean up header
$header =~ s/CLMSG_//g;
# test whether content is an empty hash or a string which is required
my $content = @{$msg_hash->{$header}}[0];
# TODO eval ändern auf if(ref($content) eq "HASH") dann ... else, dann...
- eval{ if( 0 == keys(%$content) ) { $content = ""; } };
- if( $@ ) { $content = "$content"; }
+#########
+# testing
+ my $content = @{$msg_hash->{$header}}[0];
+ if(ref($content) eq "HASH") { $content = ""; }
+ #eval{ if( 0 == keys(%$content) ) { $content = ""; } };
+ #if( $@ ) { $content = "$content"; }
+# testing
+#########
# clean up header
$header =~ s/CLMSG_//g;
# test whether content is an empty hash or a string which is required
# TODO eval ändern auf if(ref($content) eq "HASH") dann ... else, dann...
- eval{ if( 0 == keys(%$content) ) { $content = ""; } };
- if( $@ ) { $content = "$content"; }
+#########
+# testing
+ my $content = @{$msg_hash->{$header}}[0];
+ if(ref($content) eq "HASH") { $content = ""; }
+ #eval{ if( 0 == keys(%$content) ) { $content = ""; } };
+ #if( $@ ) { $content = "$content"; }
+# testing
+#########
# clean up header
$header =~ s/CLMSG_//g;
# test whether content is an empty hash or a string which is required
my $content = @{$msg_hash->{$header}}[0];
# TODO eval ändern auf if(ref($content) eq "HASH") dann ... else, dann...
- eval{ if( 0 == keys(%$content) ) { $content = ""; } };
- if( $@ ) { $content = "$content"; }
+#########
+# testing
+ my $content = @{$msg_hash->{$header}}[0];
+ if(ref($content) eq "HASH") { $content = ""; }
+ #eval{ if( 0 == keys(%$content) ) { $content = ""; } };
+ #if( $@ ) { $content = "$content"; }
+# testing
+#########
# clean up header
$header =~ s/CLMSG_//g;
# test whether content is an empty hash or a string which is required
my $content = @{$msg_hash->{$header}}[0];
# TODO eval ändern auf if(ref($content) eq "HASH") dann ... else, dann...
- eval{ if( 0 == keys(%$content) ) { $content = ""; } };
- if( $@ ) { $content = "$content"; }
+#########
+# testing
+ my $content = @{$msg_hash->{$header}}[0];
+ if(ref($content) eq "HASH") { $content = ""; }
+ #eval{ if( 0 == keys(%$content) ) { $content = ""; } };
+ #if( $@ ) { $content = "$content"; }
+# testing
+#########
# set fai_state to localboot
&main::change_fai_state('error', \@{$msg_hash->{'macaddress'}}, $session_id);
my $content = @{$msg_hash->{$header}}[0];
# TODO eval ändern auf if(ref($content) eq "HASH") dann ... else, dann...
- eval{ if( 0 == keys(%$content) ) { $content = ""; } };
- if( $@ ) { $content = "$content"; }
+#########
+# testing
+ my $content = @{$msg_hash->{$header}}[0];
+ if(ref($content) eq "HASH") { $content = ""; }
+ #eval{ if( 0 == keys(%$content) ) { $content = ""; } };
+ #if( $@ ) { $content = "$content"; }
+# testing
+#########
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET status='processing', result='$header "."$content' ".