]> git.street.me.uk Git - andy/gpx.git/blobdiff - src/libgpx/tracksegment.php
Bugfix: Timestamps not converted to UTC when writing GPX
[andy/gpx.git] / src / libgpx / tracksegment.php
index 92ea5ea69f1d867fcf0ab05d2b4bd4a0a7853bfe..423ab96b04b9290ccae962d47de48de1fa5e8394 100644 (file)
@@ -89,7 +89,11 @@ class TrackSegment
     if ($this->points !== null) {
       foreach ($this->points as $point) {
         $bounds = $point->getBounds();
-        $result = ($result === null ? $bounds : $result->extend($bounds));
+        if ($result === null) {
+          $result = $bounds;
+        } else {
+          $result->extend($bounds);
+        }
       }
     }
     return $result;