Skip to content

Commit 91f3bc2

Browse files
committed
FIX show also pictures without name
1 parent 0b911c1 commit 91f3bc2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

osmmap2.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@
149149
// SUBSTRING_INDEX(TRIM(LEADING '.' FROM `path`), '.', 1) full path without filename extension
150150
// SUBSTRING_INDEX(TRIM(LEADING '.' FROM `path`), '.', -1) full path with only filename extension
151151

152-
$query="SELECT `latitude`, `longitude`, `name`,
152+
$query="SELECT `latitude`, `longitude`,
153+
IFNULL(`name`, '') AS `name`,
153154
IF(`representative_ext` IS NULL,
154155
CONCAT(SUBSTRING_INDEX(TRIM(LEADING '.' FROM `path`), '.', 1 ), '-sq.', SUBSTRING_INDEX(TRIM(LEADING '.' FROM `path`), '.', -1 )),
155156
TRIM(LEADING '.' FROM
@@ -169,7 +170,7 @@
169170
`width`
170171
FROM ".IMAGES_TABLE." AS i
171172
INNER JOIN ".IMAGE_CATEGORY_TABLE." AS ic ON id = ic.image_id
172-
WHERE ".$LIMIT_SEARCH." `latitude` IS NOT NULL AND `longitude` IS NOT NULL ".$forbidden." group by `name`;";
173+
WHERE ".$LIMIT_SEARCH." `latitude` IS NOT NULL AND `longitude` IS NOT NULL ".$forbidden.";";
173174
//echo $query;
174175
$php_data = array_from_query($query);
175176
//print_r($php_data);

0 commit comments

Comments
 (0)