Skip to content

Commit

Permalink
Handle when source is not set for whatever reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
thezoggy committed Oct 7, 2014
1 parent ea31cd3 commit 7148885
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/interfaces/default/history.tmpl
Expand Up @@ -68,8 +68,8 @@
#set $curStatus, $curQuality = $Quality.splitCompositeStatus(int($hItem["action"]))
<tr>
<td class="col-src">
#if $len($hItem["source"]) > 0:
<img src="$sbRoot/images/${hItem["source"]}.png" width="16" height="16" alt="$hItem["source"]" title="$hItem["source"]"/>
#if $hItem["source"]:
<img src="$sbRoot/images/${hItem["source"]}.png" width="16" height="16" alt="$hItem["source"]" title="$hItem["source"]" />
#else:
$hItem["source"]
#end if
Expand All @@ -92,8 +92,8 @@
#end if
#elif $curStatus == DOWNLOADED:
$hItem["provider"]
#else
#if $len($hItem["provider"]) > 0:
#else:
#if $hItem["provider"] and $len($hItem["provider"]) > 0:
#set provider_id = $generic.GenericProvider.makeID($hItem["provider"])
#set $provider = $providers.getProviderClass($provider_id)
#if $provider is not None:
Expand Down

0 comments on commit 7148885

Please sign in to comment.