Fixed calls to Greenbox::bsGetMetadataValue() to use the new return value.

This commit is contained in:
paul 2006-11-21 15:50:37 +00:00
parent 94a0be4e6a
commit f494b34d8f
1 changed files with 2 additions and 10 deletions
campcaster/src/modules/storageServer/var

View File

@ -514,16 +514,8 @@ class LsPLaylistAudioClip
if (PEAR::isError($r)) { if (PEAR::isError($r)) {
return $r; return $r;
} }
$r = $pl->gb->bsGetMetadataValue($ac->getId(), 'dc:title'); $title = $pl->gb->bsGetMetadataValue($ac->getId(), 'dc:title');
if (PEAR::isError($r)) { $desc = $pl->gb->bsGetMetadataValue($ac->getId(), 'dc:description');
return $r;
}
$title = ( isset($r[0]) ? $r[0]['value'] : '' );
$r = $pl->gb->bsGetMetadataValue($ac->getId(), 'dc:description');
if (PEAR::isError($r)) {
return $r;
}
$desc = ( isset($r[0]) ? $r[0]['value'] : '' );
return array( return array(
'type' => 'audioclip', 'type' => 'audioclip',
'gunid' => $gunid, 'gunid' => $gunid,