Skip to content

Commit 4ef9e68

Browse files
authored
Fix loading photos with obviously bogus 0 in meta data
1 parent 5732e09 commit 4ef9e68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/functions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ function osm_items_have_latlon($items)
4747
{
4848
$query = '
4949
SELECT id FROM '.IMAGES_TABLE.'
50-
WHERE latitude IS NOT NULL
50+
WHERE latitude IS NOT NULL and latitude IS NOT NULL
51+
AND latitude != 0 AND latitude != 0
5152
AND id IN ('.implode(',', $items).')
5253
ORDER BY NULL
5354
LIMIT 0,1';

0 commit comments

Comments
 (0)