From ecbff94f11e95af67eb7a2743cedf92eae4eb50a Mon Sep 17 00:00:00 2001 From: James Date: Mon, 7 Jan 2013 13:48:51 -0500 Subject: [PATCH] CC-4795: Library -> Playlist: Cannot add Smart Block into Playlist - fixed --- airtime_mvc/application/models/Playlist.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/Playlist.php b/airtime_mvc/application/models/Playlist.php index 17ce021ff..6b97de97e 100644 --- a/airtime_mvc/application/models/Playlist.php +++ b/airtime_mvc/application/models/Playlist.php @@ -395,8 +395,10 @@ SQL; $entry["id"] = $obj->getDbId(); $entry["pos"] = $pos; $entry["cliplength"] = $obj->getDbLength(); - $entry["cuein"] = $obj->getDbCuein(); - $entry["cueout"] = $obj->getDbCueout(); + if ($obj instanceof CcFiles && $obj) { + $entry["cuein"] = $obj->getDbCuein(); + $entry["cueout"] = $obj->getDbCueout(); + } $entry["ftype"] = $objType; }