nicht abgefangene Typenkonvertierung in rp.pl
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 5 Nov 2009 16:36:23 +0000 (17:36 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 5 Nov 2009 16:36:23 +0000 (17:36 +0100)
bin/mozilla/rp.pl

index 5115ddd..25c8bcc 100644 (file)
@@ -154,7 +154,7 @@ 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} };
   }