correction bug
This commit is contained in:
parent
4dd37cda7b
commit
80af7b029a
@ -196,17 +196,18 @@ class db
|
||||
function savePeripetie()
|
||||
{
|
||||
|
||||
$query = "INSERT INTO avionPeripetie ('expeMail', 'idAvion', 'idPeripetie', 'date'), VALUES (";
|
||||
if ($this->expeKnown)
|
||||
{
|
||||
$query .= "'" . $this->protect($this->expeMail) . "',";
|
||||
}else
|
||||
{
|
||||
$query .= "'contact@avion-poe.me',";
|
||||
}
|
||||
$query = "INSERT INTO avionPeripetie ('idAvion', 'idPeripetie', 'date', 'expeMail'), VALUES (";
|
||||
$query .= "'" . $this->protect($this->uid) . "',";
|
||||
$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);
|
||||
//$query .= $this->protect($this->effetPeripetie) . "', '";
|
||||
//$query .= $this->protect($this->expeMail) . "', '";
|
||||
|
Reference in New Issue
Block a user