From 5ef1f3104f84d17d8c46c0fe4942c21e7f58ce99 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 10 Dec 2008 14:11:16 +0000 Subject: [PATCH] Ignore empty policy lists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13246 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/client/events/krb5.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-si/client/events/krb5.pm b/gosa-si/client/events/krb5.pm index 57d295a7f..dd53ba064 100644 --- a/gosa-si/client/events/krb5.pm +++ b/gosa-si/client/events/krb5.pm @@ -345,7 +345,7 @@ sub krb5_list_policies { if (not defined $kadm5){ &add_content2xml_hash($out_hash, "error", "Cannot connect to kadmin server"); } else { - my @policies= $kadm5->get_policies() or &add_content2xml_hash($out_hash, "error", Authen::Krb5::Admin::error); + my @policies= $kadm5->get_policies(); # or &add_content2xml_hash($out_hash, "error", Authen::Krb5::Admin::error); for my $policy (@policies) { &add_content2xml_hash($out_hash, "policy", $policy); } -- 2.30.2