From cb575f7dcf586c7e32f2c2f72f67c8a6c6af914d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 24 Apr 2013 10:32:13 +0200 Subject: [PATCH] Zwei Datenbankwarnungen vermeiden: cannot convert '' to number --- bin/mozilla/io.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 9c76b4521..d15676739 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1596,11 +1596,11 @@ sub print_form { # prepare meta information for template introspection $form->{template_meta} = { formname => $form->{formname}, - language => SL::DB::Manager::Language->find_by_or_create(id => $form->{language_id}), + language => SL::DB::Manager::Language->find_by_or_create(id => $form->{language_id} || undef), format => $form->{format}, media => $form->{media}, extension => $extension, - printer => SL::DB::Manager::Printer->find_by_or_create(id => $form->{printer_id}), + printer => SL::DB::Manager::Printer->find_by_or_create(id => $form->{printer_id} || undef), today => DateTime->today, }; -- 2.20.1