This adds an additional check to prevent calling a non-existent function

This commit is contained in:
Robbt 2018-01-19 13:59:25 -05:00
parent dbf0a7be85
commit 0b3405b1f6
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ $isSmartBlock = ($this->obj instanceof Application_Model_Block);
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);
if (count($items) && ($isSmartBlock || $isPlaylist)) : ?>
<?php $i = 0; ?>
<?php if (!($this->obj->isStatic())) {
<?php if ($isSmartBlock && !($this->obj->isStatic())) {
echo _("</br>This is only a preview of possible content generated by the smart block based upon the above criteria.");}
?>
<?php foreach($items as $item) :