]> git.andy128k.dev Git - ipf-template.git/commitdiff
admin style refactor
authoravl <alex.litovchenko@gmail.com>
Sat, 1 Nov 2008 18:26:48 +0000 (20:26 +0200)
committeravl <alex.litovchenko@gmail.com>
Sat, 1 Nov 2008 18:26:48 +0000 (20:26 +0200)
ipf/template/compiler.php

index 5e48473bf08e5a77bfcc9c0270163c7b800fd9e1..3b33d7c7362eb0bd0edcbe2517417493592ac517 100644 (file)
@@ -290,7 +290,10 @@ class IPF_Template_Compiler
             trigger_error(__('Start tag of a block missing: literal'), E_USER_ERROR);
             break;
         case 'block':
-            $res = '?>'.$this->_extendBlocks[$args].'<?php ';
+               if (isset($this->_extendBlocks[$args]))
+               $res = '?>'.$this->_extendBlocks[$args].'<?php ';
+            else
+               $res = '';
             break;
         case 'superblock':
             $res = '?>~~{~~superblock~~}~~<?php ';