fix undeclared variables or wrong variable names (/mod)

This commit is contained in:
rabuzarus 2018-02-12 03:25:09 +01:00
commit 2e03a3a47f
22 changed files with 29 additions and 24 deletions

View file

@ -865,7 +865,7 @@ function photos_post(App $a)
// Create item container
$lat = $lon = null;
if ($exif && $exif['GPS'] && Feature::isEnabled($channel_id, 'photo_location')) {
if ($exif && $exif['GPS'] && Feature::isEnabled($page_owner_uid, 'photo_location')) {
$lat = Photo::getGps($exif['GPS']['GPSLatitude'], $exif['GPS']['GPSLatitudeRef']);
$lon = Photo::getGps($exif['GPS']['GPSLongitude'], $exif['GPS']['GPSLongitudeRef']);
}