Index: /branches/release-34/php/lib/MTViewer.php
===================================================================
--- /branches/release-34/php/lib/MTViewer.php (revision 1799)
+++ /branches/release-34/php/lib/MTViewer.php (revision 1832)
@@ -239,4 +239,5 @@
 
     function smarty_block_elseif($args, $content, &$ctx, &$repeat) {
+        $args['elseif'] = 1;
         return $this->smarty_block_else($args, $content, $ctx, $repeat);
     }
@@ -254,7 +255,6 @@
                 $args['name'] = $var;
         }
-        if (count($args) >= 1) { # else-if case
+        if ( (count($args) > 1) || $args['elseif']) {
             require_once("block.mtif.php");
-            $args['elseif'] = 1;
             if (!isset($content)) {
                 $out = smarty_block_mtif($args, $content, $ctx, $repeat);
