Page 1 of 1

Weather plugin throws an error when `clouds are missing'

Posted: Mon Jun 27, 2011 12:17 pm
by Davy
Greetings,

After not having had a blog for a while, I decided to come back to S9y. Still love it! :)
I installed the latest version of the Weather plugin (on my freshly installed LAMP-stack), and find it quite a fun tool. The one concern I have, is that it seems some weather-reports lack the `clouds'-element, causing array_keys() to be called with NULL as an argument. The quick (and dirty) fix is to put an @-sign before the assignment on line 287, but there's probably a more intelligent solution. I'm sorry if this has been reported before, I hadn't the time to properly investigate. I just thought it'd be a good idea to point this out so that the plugin can perhaps be improved in this area.
As a side note, PHP (5.3.5) is cmplaining about deprecated features, but that's not the plugin's fault.

Cheers,
Davy