DTux
/
dtux__avion-poeme
Archived
1
0
Fork 0

corrected bug same coordinates

This commit is contained in:
Daniel Tartavel 2021-10-30 12:15:02 +02:00
parent af9b97596f
commit 5cb0055bee
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@ class db
function newPlane() //return 0 on error
{
global $base_url;
if ($this->startLat==$this->destLat && $this->startLon==$this->destLon)
{
$this->destLon+=0.001;
$this->destLat+=0.001;
}
$query = "INSERT INTO avionpoeme VALUES ('0','";
$query .= $this->protect($this->message) . "', '";
$query .= $this->protect($this->expeMail) . "', ";