correction bug
This commit is contained in:
parent
4dd37cda7b
commit
80af7b029a
@ -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) . "', '";
|
||||||
|
Reference in New Issue
Block a user