X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/437925de08860894e489db00c1d2d967c18267a2..1fad211ab12fc66117094e33425f8414fccd2cfa:/client_add.php diff --git a/client_add.php b/client_add.php index 4aef5ab7..b2cdbe76 100644 --- a/client_add.php +++ b/client_add.php @@ -64,7 +64,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 (!ttClientHelper::getClientByName($cl_name)) { if (ttClientHelper::insert(array( 'team_id' => $user->team_id,