X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c920fab5f80d6e47db5447445a4fe37a19478071..0e0ff15052f7cb7ed1a2b04235a8a217da97a183:/SL/IC.pm diff --git a/SL/IC.pm b/SL/IC.pm index 35718f602..ad1703650 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -504,7 +504,11 @@ sub save { $value = $form->parse_amount($myconfig, $form->{"lastcost_$i"}); if ($value == $form->{"old_lastcost_$i"}) { - $lastupdate = $dbh->quote($form->{"lastupdate_$i"}); + if ($form->{"lastupdate_$i"} eq "") { + $lastupdate = 'now()'; + } else { + $lastupdate = $dbh->quote($form->{"lastupdate_$i"}); + } } else { $lastupdate = 'now()'; }