1
0

correction bug

This commit is contained in:
Daniel Tartavel 2022-02-15 15:52:12 +01:00
parent 4dd37cda7b
commit 80af7b029a

View File

@ -196,17 +196,18 @@ class db
function savePeripetie() function savePeripetie()
{ {
$query = "INSERT INTO avionPeripetie ('expeMail', 'idAvion', 'idPeripetie', 'date'), VALUES ("; $query = "INSERT INTO avionPeripetie ('idAvion', 'idPeripetie', 'date', 'expeMail'), VALUES (";
if ($this->expeKnown)
{
$query .= "'" . $this->protect($this->expeMail) . "',";
}else
{
$query .= "'contact@avion-poe.me',";
}
$query .= "'" . $this->protect($this->uid) . "',"; $query .= "'" . $this->protect($this->uid) . "',";
$query .= "'" . $this->protect($this->idPeripetie) . "', "; $query .= "'" . $this->protect($this->idPeripetie) . "', ";
$query .= "FROM_UNIXTIME(" . $this->protect($this->datePeripetie) . "))"; $query .= "FROM_UNIXTIME(" . $this->protect($this->datePeripetie) . "),";
if ($this->expeKnown)
{
$query .= "'" . $this->protect($this->expeMail) . "'";
}else
{
$query .= "'contact@avion-poe.me'";
}
$query .= ")";
log_write("savePeripetie " . $query); log_write("savePeripetie " . $query);
//$query .= $this->protect($this->effetPeripetie) . "', '"; //$query .= $this->protect($this->effetPeripetie) . "', '";
//$query .= $this->protect($this->expeMail) . "', '"; //$query .= $this->protect($this->expeMail) . "', '";