X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/437925de08860894e489db00c1d2d967c18267a2..1fad211ab12fc66117094e33425f8414fccd2cfa:/client_edit.php diff --git a/client_edit.php b/client_edit.php index 747ed2b8..d594222a 100644 --- a/client_edit.php +++ b/client_edit.php @@ -77,7 +77,7 @@ if ($request->getMethod() == 'POST') { if (!ttValidString($cl_address, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.client_address')); if (!ttValidFloat($cl_tax, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.tax')); - if ($errors->isEmpty()) { + if ($errors->no()) { if ($request->getParameter('btn_save')) { $client = ttClientHelper::getClientByName($cl_name); if (($client && ($cl_id == $client['id'])) || !$client) {