From: cajus Date: Thu, 7 Jan 2010 11:52:36 +0000 (+0000) Subject: Fixed a couple of returns X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=277aebf1ad0f383a763fbeaa9d6126d4f9cf6663;p=gosa.git Fixed a couple of returns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15103 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/opsi_com.pm b/gosa-si/server/events/opsi_com.pm index 926e33d3a..6b9f2b761 100644 --- a/gosa-si/server/events/opsi_com.pm +++ b/gosa-si/server/events/opsi_com.pm @@ -611,7 +611,7 @@ sub opsi_get_product_properties { if (defined $values->{$key}){ $vals= $values->{$key}; } - $item.= "<$key>$dsc".xml_quote($value)."$vals"; + $item.= "<$key>$dsc".xml_quote($value)."$vals"; $item.= ""; $xml_msg=~ s/<\/xxx>/$item<\/xxx>/; } @@ -1422,7 +1422,9 @@ sub opsi_getSoftwareLicenseUsagesForProductId { # Fetch licensePoolId for productId my ($res, $err) = &_getLicensePoolId('productId'=>$productId); if ($err){ - return &_giveErrorFeedback($msg_hash, "cannot fetch licensePoolId for given productId : ".$res, $session_id); + my $out_hash = &create_xml_hash("answer_$header", $main::server_address, $source); + $out_hash->{result} = []; + return ( &create_xml_string($out_hash) ); } my $licensePoolId = $res; # We assume that there is only one pool for each productID!!!