refactored code to use displayable
This commit is contained in:
parent
aa9a6691f2
commit
34248921fc
airtime_mvc/application/models
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue