Closed (fixed)
Project:
Weather
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 May 2012 at 16:18 UTC
Updated:
4 Jun 2012 at 08:31 UTC
weather_retrieve_data() gives a PHP notice if it wasn't able to get a valid response from drupal_http_request(). Patch checks that $response->data has value.
| Comment | File | Size | Author |
|---|---|---|---|
| weather-weather_retrieve_data-notices.patch | 685 bytes | les lim |
Comments
Comment #2
les limThere shouldn't be any reason this patch should affect the outcome of that test. Perhaps the test is broken?
Comment #3
toddy commentedYes, the parser test had an issue with daytime and nighttime calculation. The tested station is too far in the north, so now (during summer on the northern hemisphere) the daylight calculation returns correctly "day", while the test (being written in winter) expected night. This should be fixed now, I'm requeuing your patch for testing.
Apart from that, I've applied your patch, many thanks for that. It'll be part of the next release.
Comment #4
toddy commentedweather-weather_retrieve_data-notices.patch queued for re-testing.
Comment #5
toddy commented