Fixed bug where displaying a scheduled playlist crashed.
This commit is contained in:
parent
63af23521a
commit
e5cd150fbc
|
@ -2,7 +2,7 @@
|
|||
|
||||
onMouseover = "showalttext('<div style="font-size: 120%; font-weight: bold">##{$i.type|lower|capitalize}##: {$_metaarr.metadata.Title}</div>' +
|
||||
{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'}
|
||||
'<div>{$_pli.title|escape:'html'} {$_pli.duration|truncate:8:''}</div>' +
|
||||
|
|
|
@ -685,16 +685,16 @@ class uiPlaylist
|
|||
} // fn isAvailable
|
||||
|
||||
|
||||
// function isUsedBy($id)
|
||||
// {
|
||||
// if ($this->Base->gb->getFileType($id) !== UI_FILETYPE_PLAYLIST) {
|
||||
// return FALSE;
|
||||
// }
|
||||
// if (($userid = $this->Base->gb->playlistIsAvailable($id, $this->Base->sessid)) !== TRUE) {
|
||||
// return $this->Base->gb->getSubjName($userid);
|
||||
// }
|
||||
// return FALSE;
|
||||
// } // fn isUsedBy
|
||||
function isUsedBy($id)
|
||||
{
|
||||
if ($this->Base->gb->getFileType($id) !== UI_FILETYPE_PLAYLIST) {
|
||||
return FALSE;
|
||||
}
|
||||
if (($userid = $this->Base->gb->playlistIsAvailable($id, $this->Base->sessid)) !== TRUE) {
|
||||
return $this->Base->gb->getSubjName($userid);
|
||||
}
|
||||
return FALSE;
|
||||
} // fn isUsedBy
|
||||
|
||||
|
||||
public function exportForm($id,$mask)
|
||||
|
|
Loading…
Reference in New Issue