From: cajus Date: Wed, 10 Dec 2008 14:11:16 +0000 (+0000) Subject: Ignore empty policy lists X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5ef1f3104f84d17d8c46c0fe4942c21e7f58ce99;p=gosa.git Ignore empty policy lists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13246 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); }