Merge pull request #413 from Robbt/fix/check_is_block_before_is_static
This adds an additional check to prevent calling a non-existent function
This commit is contained in:
commit
94d21344b9
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ $isSmartBlock = ($this->obj instanceof Application_Model_Block);
|
||||||
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);
|
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);
|
||||||
if (count($items) && ($isSmartBlock || $isPlaylist)) : ?>
|
if (count($items) && ($isSmartBlock || $isPlaylist)) : ?>
|
||||||
<?php $i = 0; ?>
|
<?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.");}
|
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) :
|
<?php foreach($items as $item) :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue