Closed (fixed)
Project:
GeoNames
Version:
6.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
10 Dec 2009 at 18:49 UTC
Updated:
23 Jul 2021 at 13:57 UTC
The value that is being returned for the timezone is actually the score value which appears after the timezone in the returned xml.
There appears to be an error in the following line (660 in the current code) where the $fieldname is being accidentally set to 'timezone' on each loop rather than comparing it to the string value.
if ((!$columns) || in_array($fieldname, $columns) || $fieldname = 'timezone') {
Comments
Comment #1
lyricnz commentedThanks, fixed in dev. Can you provide a query that causes this, so I can add to the simpletest?