Skip to content

Commit

Permalink
Existence check, fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Sep 9, 2015
1 parent c8465c1 commit 55e3515
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @package Service_Weather
*/
class Horde_Service_Weather_WeatherUnderground extends Horde_Service_Weather_Base
{
{

const API_URL = 'http://api.wunderground.com';

Expand Down Expand Up @@ -290,7 +290,7 @@ protected function _getCommonElements($location, $length = Horde_Service_Weather
$this->title = $results->current_observation->image->title;

// Radar
if ($results->radar) {
if (!empty($results->radar)) {
$this->_radar = $results->radar->image_url;
}
}
Expand Down

0 comments on commit 55e3515

Please sign in to comment.