]> git.mxchange.org Git - friendica.git/blobdiff - include/photos.php
Merge pull request #3568 from tobiasd/20170707-esde
[friendica.git] / include / photos.php
index a1faffc2592954ca544e3a74064814880e4a6bf7..6e0002bd472405b858fd7e3e16c75c409abcc295 100644 (file)
@@ -12,7 +12,7 @@ function getGps($exifCoord, $hemi) {
        $minutes = count($exifCoord) > 1 ? gps2Num($exifCoord[1]) : 0;
        $seconds = count($exifCoord) > 2 ? gps2Num($exifCoord[2]) : 0;
 
-       $flip = ($hemi == 'W' or $hemi == 'S') ? -1 : 1;
+       $flip = ($hemi == 'W' || $hemi == 'S') ? -1 : 1;
 
        return floatval($flip * ($degrees + ($minutes / 60) + ($seconds / 3600)));
 }