Closed (fixed)
Project:
GeoNames
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2009 at 09:55 UTC
Updated:
8 Jan 2010 at 10:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
lyricnz commentedThere is some code that looks like it intended to handle this case:
but this doesn't work because $xml->status is not an array but a SimpleXMLElement.
Comment #2
lyricnz commentedTo check for the existence of a child, typecast it to a bool. Here's a patch that does that.
Comment #3
lyricnz commentedApplied.