diff --git a/Services/OpenStreetMap/Object.php b/Services/OpenStreetMap/Object.php index 9c1aa9c..ff65586 100644 --- a/Services/OpenStreetMap/Object.php +++ b/Services/OpenStreetMap/Object.php @@ -202,7 +202,7 @@ public function getOsmChangeXml() $set[$key] = $val; } - $diff = array_diff($this->getTags(), $set); + $diff = array_diff_assoc($this->getTags(), $set); // Remove existing tags for ($i = 0; $i < $tags->length; $i++) {