From 57be7a931a18077e6f28a38a2fec2bcd3ec3a710 Mon Sep 17 00:00:00 2001 From: William Date: Tue, 15 Feb 2022 13:30:35 +0100 Subject: [PATCH] Commit --- public/teamtable/edit/update.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/teamtable/edit/update.php b/public/teamtable/edit/update.php index d3faaac..d26b210 100644 --- a/public/teamtable/edit/update.php +++ b/public/teamtable/edit/update.php @@ -115,16 +115,16 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') if (!$validationError) { if ( - $LagNavn === $currentTeam['LagNavn'] && - $Bedrift === $currentTeam['Bedrift'] && - $Kortnummer === $currentTeam['Kortnummer'] && - $Lagleder === $currentTeam['Lagleder'] && - $Telefon === $currentTeam['Telefon'] && - $Deltagere === $currentTeam['Deltagere'] && - $Runder === $currentTeam['Runder'] + $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); + $app->session->flash('Fant ingen endringer for lag: '.$LagNavn); } else { // All is good! Lets update the team details $model->updateTeamByID(