DBUpgrade: Warnings in Tests unterdrücken
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2015 12:54:19 +0000 (14:54 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2015 12:54:19 +0000 (14:54 +0200)
sql/Pg-upgrade2/currencies.pl

index e1b8d9c..30f7795 100644 (file)
@@ -20,7 +20,7 @@ sub run {
     print_no_default_currency();
     return 2;
   } else {
-    if (length($main::form->{defaultcurrency}) == 0){
+    if (!defined $::form->{defaultcurrency} || length($main::form->{defaultcurrency}) == 0){
       $main::form->{defaultcurrency} = (split m/:/, $currencies)[0];
     }
   }