X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=reports.php;h=004ae6a6edf521664e909a59d5db44731b8976fc;hb=b4b57ea6a41c263250715f72248d48eae22f5476;hp=c22bf25c7c4f65fcc29aa238257190e9827ce4b6;hpb=4426ed3bc8e53d5013d356505283c916e3826392;p=timetracker.git 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();