Skip to content

Commit 017980e

Browse files
authored
Merge pull request #117 from wb3fan/patch-1
Syntax error
2 parents 7564ffb + c1a3281 commit 017980e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

admin/admin_photo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@
155155
// Easy access
156156
define('osm_place_table', $prefixeTable.'osm_places');
157157
// Save location, eg Place
158-
$list_of_places = [];
159-
$available_places = [];
158+
$list_of_places = array();
159+
$available_places = array();
160160
$query = '
161161
SELECT id, name, latitude, longitude
162162
FROM '.osm_place_table.'
@@ -165,7 +165,7 @@
165165
// JS for the template
166166
while ($row = pwg_db_fetch_assoc($result))
167167
{
168-
$list_of_places[$row['id']] = [$row['name'], $row['latitude'], $row['longitude'] ];
168+
$list_of_places[$row['id']] = array($row['name'], $row['latitude'], $row['longitude']);
169169
$available_places[$row['id']] = $row['name'];
170170
}
171171

0 commit comments

Comments
 (0)