Changeset 1861

Show
Ignore:
Timestamp:
04/11/08 14:40:20 (4 months ago)
Author:
fumiakiy
Message:

Do not reconstruct name argument if the tag is unconditional <mtelse>. BugId:69678

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-34/php/lib/MTViewer.php

    r1860 r1861  
    248248            return ''; 
    249249        } 
    250         if (!isset($args['name']) && !isset($args['var']) && !isset($args['tag'])) { 
     250        if ((count($args) > 0) && (!isset($args['name']) && !isset($args['var']) && !isset($args['tag']))) { 
    251251            require_once("function.mtgetvar.php"); 
    252252            $var = smarty_function_mtgetvar(array('name' => '__name__'), $ctx);