This adds an additional check to prevent calling a non-existent function
This commit is contained in:
parent
dbf0a7be85
commit
0b3405b1f6
|
@ -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) :
|
||||
|
|
Loading…
Reference in New Issue