Skip to content

Commit

Permalink
Don't assume we have an icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Aug 8, 2016
1 parent d291066 commit 605ea62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion horde/templates/block/weather_content.html.php
Expand Up @@ -82,7 +82,9 @@

<!-- Current conditions -->
<br /><strong><?php echo _("Current condition")?>: </strong>
<?php echo Horde_Themes_Image::tag('weather/32x32/' . $this->current->icon) . ' ' . $this->current->condition?>
<?php if ($this->current->icon):?>
<?php echo Horde_Themes_Image::tag('weather/32x32/' . $this->current->icon) . ' ' . $this->current->condition?>
<?php endif;?>
</div>

<!-- Forecast -->
Expand Down

0 comments on commit 605ea62

Please sign in to comment.