wirren strict fehler unterdrücken
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 5 Mar 2012 13:32:51 +0000 (14:32 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 5 Mar 2012 13:32:51 +0000 (14:32 +0100)
bin/mozilla/dn.pl

index 07b1000..627f696 100644 (file)
@@ -135,7 +135,7 @@ sub show_invoices {
     map { $row->{$_} = $form->format_amount(\%myconfig, $row->{$_} * 1, -2) } qw(amount open_amount fee interest);
 
     if ($row->{'language_id'}) {
-      $row->{language} = SL::DB::Manager::Language->find_by('id' => $row->{'language_id'})->{'description'};
+      $row->{language} = SL::DB::Manager::Language->find_by_or_create('id' => $row->{'language_id'})->{'description'};
     }
   }