From 5cb0055bee40c2fef519336c2b3cc7482b626b0a Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sat, 30 Oct 2021 12:15:02 +0200 Subject: [PATCH] corrected bug same coordinates --- include/db.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/db.class.php b/include/db.class.php index 5061988..fd4667d 100644 --- a/include/db.class.php +++ b/include/db.class.php @@ -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) . "', ";