More italian

This commit is contained in:
William 2022-02-15 13:19:16 +01:00
parent 17e201e9a4
commit 005c9a4499

View File

@ -114,6 +114,18 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST')
if (!$validationError) { if (!$validationError) {
if (
$LagNavn == $currentTeam['LagNavn'] &&
$Bedrift == $currentTeam['Bedrift'] &&
$Kortnummer == $currentTeam['Kortnummer'] &&
$Lagleder == $currentTeam['Lagleder'] &&
$Telefon == $currentTeam['Telefon'] &&
$Deltagere == $currentTeam['Deltagere'] &&
$Runder == $currentTeam['Runder']
)
{
$app->session->flash('Ingen endringer ble gjort for lag: '.$LagNavn);
} else {
// All is good! Lets update the team details // All is good! Lets update the team details
$model->updateTeamByID( $model->updateTeamByID(
$id, $id,
@ -127,6 +139,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST')
); );
$app->session->flash('Lagret endringer for lag: '.$LagNavn, 'success'); $app->session->flash('Lagret endringer for lag: '.$LagNavn, 'success');
}
$app->redirect('index.php'); $app->redirect('index.php');
} else { } else {
$app->session->flash('Kunne ikke endre lag: Validerings feil!', 'danger'); $app->session->flash('Kunne ikke endre lag: Validerings feil!', 'danger');