X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/4426ed3bc8e53d5013d356505283c916e3826392..4df61856250643178176215235ffe106cb3cb4ea:/reports.php diff --git a/reports.php b/reports.php index c22bf25c..004ae6a6 100644 --- a/reports.php +++ b/reports.php @@ -264,11 +264,11 @@ if ($request->getMethod() == 'POST') { // User clicked the Save button. We need to save form options as new favorite report. if (!ttValidString($bean->getAttribute('new_fav_report'))) $errors->add($i18n->getKey('error.field'), $i18n->getKey('form.reports.save_as_favorite')); - if ($errors->isEmpty()) { + if ($errors->no()) { $id = ttFavReportHelper::saveReport($user->id, $bean); if (!$id) $errors->add($i18n->getKey('error.db')); - if ($errors->isEmpty()) { + if ($errors->no()) { $bean->setAttribute('favorite_report', $id); $bean->saveBean(); header('Location: reports.php'); @@ -306,7 +306,7 @@ if ($request->getMethod() == 'POST') { $bean->saveBean(); - if ($errors->isEmpty()) { + if ($errors->no()) { // Now we can go ahead and create a report. header('Location: report.php'); exit();