parent
db0f6260c7
commit
ffbdba6f6b
|
@ -90,6 +90,9 @@ class Application_Model_Datatables
|
||||||
// we need to go over all items and fix length for playlist
|
// we need to go over all items and fix length for playlist
|
||||||
// in case the playlist contains dynamic block
|
// in case the playlist contains dynamic block
|
||||||
foreach ($results as &$r) {
|
foreach ($results as &$r) {
|
||||||
|
//this function is also called for Manage Users so in
|
||||||
|
//this case there will be no 'ftype'
|
||||||
|
if (isset($r['ftype'])) {
|
||||||
if ($r['ftype'] == 'playlist') {
|
if ($r['ftype'] == 'playlist') {
|
||||||
$pl = new Application_Model_Playlist($r['id']);
|
$pl = new Application_Model_Playlist($r['id']);
|
||||||
$r['length'] = $pl->getLength();
|
$r['length'] = $pl->getLength();
|
||||||
|
@ -103,6 +106,7 @@ class Application_Model_Datatables
|
||||||
$r['length'] = $bl->getLength();
|
$r['length'] = $bl->getLength();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Logging::debug($e->getMessage());
|
Logging::debug($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue