X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fphotos.php;h=6e0002bd472405b858fd7e3e16c75c409abcc295;hb=512e58a7db8fed2e3a5347b3e3ef0098718f86fb;hp=a1faffc2592954ca544e3a74064814880e4a6bf7;hpb=9c0d2c31e87a73f157b360c518eb059e9a2507de;p=friendica.git diff --git a/include/photos.php b/include/photos.php index a1faffc259..6e0002bd47 100644 --- a/include/photos.php +++ b/include/photos.php @@ -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))); }