corrected bug same coordinates
This commit is contained in:
parent
af9b97596f
commit
5cb0055bee
@ -98,6 +98,11 @@ class db
|
|||||||
function newPlane() //return 0 on error
|
function newPlane() //return 0 on error
|
||||||
{
|
{
|
||||||
global $base_url;
|
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 = "INSERT INTO avionpoeme VALUES ('0','";
|
||||||
$query .= $this->protect($this->message) . "', '";
|
$query .= $this->protect($this->message) . "', '";
|
||||||
$query .= $this->protect($this->expeMail) . "', ";
|
$query .= $this->protect($this->expeMail) . "', ";
|
||||||
|
Reference in New Issue
Block a user