]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/ca.pl
Zusätzliche Auftragsfelder beim Laden von Rechnungen holen.
[mfinanz.git] / bin / mozilla / ca.pl
index 66a6a6a3d241cffcef13a6fa9faf502680491ddb..b35b66495ce2c35c52c5856fcf1a89f6b08674c3 100644 (file)
@@ -161,13 +161,13 @@ sub list {
 
   # 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} });
+    } (@{ $form->{all_departments} || [] });
   }
 
   my $department = qq|