Skip to content

Commit

Permalink
initialize variable str
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins committed Aug 29, 2014
1 parent 55d9d5c commit d90eff9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/adapters/KML.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ private function linestringToKML($geom, $type = FALSE) {

public function polygonToKML($geom) {
$components = $geom->getComponents();
$str = '';
if (!empty($components)) {
$str = '<'.$this->nss.'outerBoundaryIs>' . $this->linestringToKML($components[0], 'LinearRing') . '</'.$this->nss.'outerBoundaryIs>';
foreach (array_slice($components, 1) as $comp) {
Expand Down

0 comments on commit d90eff9

Please sign in to comment.