Skip to content

Commit c5b9f05

Browse files
authored
Allowing two tags to have the same value
The following change would remove the check that's preventing two tags from having the same value (as described at pear#14 )
1 parent 434efea commit c5b9f05

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Services/OpenStreetMap/Object.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,8 @@ public function getOsmChangeXml()
195195
}
196196
$tags = $xpath->query("//{$type}/tag");
197197

198-
$set = array();
199-
for ($i = 0; $i < $tags->length; $i++) {
200-
$key = $tags->item($i)->getAttribute('k');
201-
$val = $tags->item($i)->getAttribute('v');
202-
$set[$key] = $val;
203-
}
204-
205-
$diff = array_diff($this->getTags(), $set);
198+
199+
$diff = $this->getTags();
206200

207201
// Remove existing tags
208202
for ($i = 0; $i < $tags->length; $i++) {

0 commit comments

Comments
 (0)