X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/4426ed3bc8e53d5013d356505283c916e3826392..4df61856250643178176215235ffe106cb3cb4ea:/invoice_send.php diff --git a/invoice_send.php b/invoice_send.php index 399e08cb..18d8db6b 100644 --- a/invoice_send.php +++ b/invoice_send.php @@ -71,7 +71,7 @@ if ($request->getMethod() == 'POST') { if (!ttValidString($cl_subject)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('form.mail.subject')); if (!ttValidString($cl_comment, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.comment')); - if ($errors->isEmpty()) { + if ($errors->no()) { // Save last invoice emails for future use. $sc->setValue(SYSC_LAST_INVOICE_EMAIL, $cl_receiver); $sc->setValue(SYSC_LAST_INVOICE_CC, $cl_cc);