Show number of pictures per place

This shows the number of pictures per place.
This function was previously disabled, if the parameter 'mark'
wasn't set to 0. I found no reason why this was the case.

Signed-off-by: Christoph Wildhagen <git@christoph-wildhagen.de>
pull/840/head
Christoph Wildhagen 2023-09-30 00:58:50 +02:00
parent eacf64fce0
commit 06266a27e3
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class PlacesBackend extends Backend
$lang = Util::getUserLang();
foreach ($places as &$row) {
$row['osm_id'] = (int) $row['osm_id'];
$row['count'] = $marked ? 0 : (int) $row['count']; // the count is incorrect
$row['count'] = (int) $row['sub.count'];
self::choosePlaceLang($row, $lang);
}