https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e683bd6
)
Add check for exif data existence in mod/photos
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Thu, 9 Jul 2020 19:03:14 +0000
(15:03 -0400)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Thu, 9 Jul 2020 19:03:14 +0000
(15:03 -0400)
mod/photos.php
patch
|
blob
|
history
diff --git
a/mod/photos.php
b/mod/photos.php
index
2b72fd3
..
f33a924
100644
(file)
--- a/
mod/photos.php
+++ b/
mod/photos.php
@@
-778,7
+778,7
@@
function photos_post(App $a)
// Create item container
$lat = $lon = null;
- if (
$exif && $exif['GPS']
&& Feature::isEnabled($page_owner_uid, 'photo_location')) {
+ if (
!empty($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']);
}