Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
authorJan Büren <jan@lx-office-hosting.de>
Tue, 17 Jan 2012 21:15:18 +0000 (22:15 +0100)
committerJan Büren <jan@lx-office-hosting.de>
Tue, 17 Jan 2012 21:15:18 +0000 (22:15 +0100)
bin/mozilla/ct.pl

index b47d8e2..b525535 100644 (file)
@@ -288,7 +288,7 @@ sub edit {
   # format discount
   $form->{discount} *= 100;
   # format uri
-  $form->{homepage} = 'http://' . $form->{homepage} unless $form->{homepage} =~ m|^https?://|;
+  $form->{homepage} = 'http://' . $form->{homepage} unless ((!$form->{homepage}) || $form->{homepage} =~ m|^https?://|);
 
   &form_header;
   &form_footer;