Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Using array_shift instead of array_unshpift to get the first value

  • Loading branch information...
commit a89637dbefff823adfef5fd3562bfc15f7fbae73 1 parent 13bd2d6
@phayes authored
Showing with 1 addition and 1 deletion.
  1. +1 −1 
2 
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.