X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Frp.pl;h=5099c899551d9d1171fd3fad1b3dfba6f841674b;hb=7886b2fe17ddc184789bda2aca7f92998c6fc6cb;hp=62abf6683c450084475a97b519005aea3ca15f1e;hpb=11461ccecbd3b4f054f52f979c26145642539e8c;p=kivitendo-erp.git
diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl
index 62abf6683..5099c8995 100644
--- a/bin/mozilla/rp.pl
+++ b/bin/mozilla/rp.pl
@@ -52,10 +52,6 @@ require "bin/mozilla/reportgenerator.pl";
# should there be any missing vars, declare them globally
use strict;
-1;
-
-# end of main
-
# this is for our long dates
# $locale->text('January')
# $locale->text('February')
@@ -158,9 +154,9 @@ sub report {
# get departments
$form->all_departments(\%myconfig);
- if (@{ $form->{all_departments} }) {
+ if (@{ $form->{all_departments} || [] }) {
$form->{selectdepartment} = "