]> wagnertech.de Git - timetracker.git/blobdiff - invoice_send.php
Removed unused function
[timetracker.git] / invoice_send.php
index a013bdf75ac287eb0c21316d2761eaeaaf125fbb..18d8db6bae1085d7780338a08d5d2f68ee63164d 100644 (file)
@@ -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);
@@ -92,7 +92,7 @@ if ($request->getMethod() == 'POST') {
     else
       $errors->add($i18n->getKey('error.mail_send'));
   }
-}
+} // POST
 
 $smarty->assign('title', $i18n->getKey('title.send_invoice'));
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));