Fixed bug where displaying a scheduled playlist crashed.

This commit is contained in:
paul 2006-11-21 19:46:24 +00:00
parent 63af23521a
commit e5cd150fbc
2 changed files with 11 additions and 11 deletions
campcaster/src/modules/htmlUI/var

View File

@ -2,7 +2,7 @@
onMouseover = "showalttext('<div style=&quot;font-size: 120%; font-weight: bold&quot;>##{$i.type|lower|capitalize}##: {$_metaarr.metadata.Title}</div>' + onMouseover = "showalttext('<div style=&quot;font-size: 120%; font-weight: bold&quot;>##{$i.type|lower|capitalize}##: {$_metaarr.metadata.Title}</div>' +
{if $i.type|lower == 'playlist'} {if $i.type|lower == 'playlist'}
{if $PL->isUSedBy($i.id) != false}'<div>({tra str='in use by: $1' 1=$PL->isUSedBy($i.id)})</div>' + {/if} {if $PL->isUsedBy($i.id) != false}'<div>({tra str='in use by: $1' 1=$PL->isUsedBy($i.id)})</div>' + {/if}
{foreach from=$PL->getFlat($i.id) item='_pli'} {foreach from=$PL->getFlat($i.id) item='_pli'}
'<div>{$_pli.title|escape:'html'} &nbsp;{$_pli.duration|truncate:8:''}</div>' + '<div>{$_pli.title|escape:'html'} &nbsp;{$_pli.duration|truncate:8:''}</div>' +

View File

@ -685,16 +685,16 @@ class uiPlaylist
} // fn isAvailable } // fn isAvailable
// function isUsedBy($id) function isUsedBy($id)
// { {
// if ($this->Base->gb->getFileType($id) !== UI_FILETYPE_PLAYLIST) { if ($this->Base->gb->getFileType($id) !== UI_FILETYPE_PLAYLIST) {
// return FALSE; return FALSE;
// } }
// if (($userid = $this->Base->gb->playlistIsAvailable($id, $this->Base->sessid)) !== TRUE) { if (($userid = $this->Base->gb->playlistIsAvailable($id, $this->Base->sessid)) !== TRUE) {
// return $this->Base->gb->getSubjName($userid); return $this->Base->gb->getSubjName($userid);
// } }
// return FALSE; return FALSE;
// } // fn isUsedBy } // fn isUsedBy
public function exportForm($id,$mask) public function exportForm($id,$mask)