Skip to content

Commit

Permalink
Using array_shift instead of array_unshpift to get the first value
Browse files Browse the repository at this point in the history
  • Loading branch information
phayes committed Jul 16, 2013
1 parent 13bd2d6 commit a89637d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoPHP.inc
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class geoPHP
// If it's an array of one, then just parse the one
if (is_array($geometry)) {
if (empty($geometry)) return FALSE;
if (count($geometry) == 1) return geoPHP::geometryReduce(array_unshift($geometry));
if (count($geometry) == 1) return geoPHP::geometryReduce(array_shift($geometry));
}

// If the geometry cannot even theoretically be reduced more, then pass it back
Expand Down

0 comments on commit a89637d

Please sign in to comment.