From 400a11401afc318af6e463dea10dadd4b7b0ae96 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 12 Feb 2015 14:51:56 +0100 Subject: [PATCH] Minor - format code. --- main/admin/careers.php | 2 +- main/admin/grade_models.php | 13 +++++-------- main/admin/promotions.php | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/main/admin/careers.php b/main/admin/careers.php index e5cfc2f79f..b97c6d4a86 100755 --- a/main/admin/careers.php +++ b/main/admin/careers.php @@ -164,4 +164,4 @@ switch ($action) { $career->display(); break; } -Display :: display_footer(); \ No newline at end of file +Display :: display_footer(); diff --git a/main/admin/grade_models.php b/main/admin/grade_models.php index 793ed8298b..3a022c1b5d 100755 --- a/main/admin/grade_models.php +++ b/main/admin/grade_models.php @@ -117,14 +117,11 @@ switch ($action) { $url = api_get_self().'?action='.Security::remove_XSS($_GET['action']); $form = $obj->return_form($url, 'add'); - - - // The validation or display - if ($form->validate()) { - if ($check) { + if ($form->validate()) { + if ($check) { $values = $form->exportValues(); - $res = $obj->save($values); + $res = $obj->save($values); if ($res) { Display::display_confirmation_message(get_lang('ItemAdded')); } @@ -147,7 +144,7 @@ switch ($action) { // The validation or display if ($form->validate()) { if ($check) { - $values = $form->exportValues(); + $values = $form->exportValues(); $res = $obj->update($values); Display::display_confirmation_message(get_lang('ItemUpdated'), false); } @@ -175,4 +172,4 @@ switch ($action) { $obj->display(); break; } -Display :: display_footer(); \ No newline at end of file +Display :: display_footer(); diff --git a/main/admin/promotions.php b/main/admin/promotions.php index 0ed47efba5..80680fae3a 100755 --- a/main/admin/promotions.php +++ b/main/admin/promotions.php @@ -171,4 +171,4 @@ switch ($action) { $promotion->display(); break; } -Display::display_footer(); \ No newline at end of file +Display::display_footer();