]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/rp.pl
Zusätzliche Auftragsfelder beim Laden von Rechnungen holen.
[mfinanz.git] / bin / mozilla / rp.pl
index 5115ddd35e3ea9c5b3ef7830223135d9ad35aff5..5099c899551d9d1171fd3fad1b3dfba6f841674b 100644 (file)
@@ -154,9 +154,9 @@ sub report {
 
   # get departments
   $form->all_departments(\%myconfig);
-  if (@{ $form->{all_departments} }) {
+  if (@{ $form->{all_departments} || [] }) {
     $form->{selectdepartment} = "<option>\n";
-    map { $form->{selectdepartment} .= "<option>$_->{description}--$_->{id}\n" } @{ $form->{all_departments} };
+    map { $form->{selectdepartment} .= "<option>$_->{description}--$_->{id}\n" } @{ $form->{all_departments} || [] };
   }
 
   my $department = qq|