refactored code to use displayable

This commit is contained in:
Rudi Grinberg 2012-11-05 10:09:34 -05:00
parent aa9a6691f2
commit 34248921fc
1 changed files with 1 additions and 1 deletions
airtime_mvc/application/models

View File

@ -379,7 +379,7 @@ SQL;
{
$file = CcFilesQuery::create()->findPK($p_item, $this->con);
if (isset($file) && $file->getDbFileExists() && !$file->getDbHidden()) {
if (isset($file) && $file->displayable()) {
$entry = $this->blockItem;
$entry["id"] = $file->getDbId();
$entry["pos"] = $pos;