unset($args['append']);
}
- $sandbox = false;
+ $sandbox = 0;
if (isset($args['sandbox'])) {
$sandbox = $args['sandbox'];
unset($args['sandbox']);
$phpCode .= "ob_start();\n";
}
- $phpCode .= '$this->includeTemplate('.$file.', array('.$argString.'), '.($sandbox ? 1 : 0).', $this->v[\'__PACKAGE_ID\']);'."\n";
+ $phpCode .= '$this->includeTemplate('.$file.', array('.$argString.'), ('.$sandbox.' ? 1 : 0), $this->v[\'__PACKAGE_ID\']);'."\n";
if ($assignVar !== false) {
$phpCode .= '$this->'.($append ? 'append' : 'assign').'('.$assignVar.', ob_get_clean());'."\n";