added check for hidden in buildEntry

This commit is contained in:
Rudi Grinberg 2012-11-05 09:47:16 -05:00
parent 800f8b9ded
commit 00a4e45491
1 changed files with 9 additions and 6 deletions

View File

@ -373,13 +373,16 @@ SQL;
}
if (isset($obj)) {
if (($obj instanceof CcFiles && $obj->getDbFileExists()) || $obj instanceof CcWebstream || $obj instanceof CcBlock) {
$entry = $this->plItem;
$entry["id"] = $obj->getDbId();
$entry["pos"] = $pos;
if (($obj instanceof CcFiles && $obj->getDbFileExists() &&
!$obj->getDbHidden()) || $obj instanceof CcWebstream ||
$obj instanceof CcBlock) {
$entry = $this->plItem;
$entry["id"] = $obj->getDbId();
$entry["pos"] = $pos;
$entry["cliplength"] = $obj->getDbLength();
$entry["cueout"] = $obj->getDbLength();
$entry["ftype"] = $objType;
$entry["cueout"] = $obj->getDbLength();
$entry["ftype"] = $objType;
}
return $entry;