Skip to content

Commit 1643497

Browse files
author
Marius Cramer
committed
Bugfix in template parser class
1 parent 45a8b56 commit 1643497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/lib/classes/tpl.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,14 +1132,14 @@ function _parseIf ($varname, $value=null, $op=null, $namespace=null, $format=nul
11321132
if ($this->OPTIONS['GLOBAL_VARS'] && empty($namespace)) {
11331133
$retstr = '(('.$retstr.'[\''.$varname.'\'] !== null) ? '.$retstr.'[\''.$varname.'\'] : $this->_vars[\''.$varname.'\'])';
11341134
if(isset($format) && isset($value) && $format == 'version') {
1135-
return 'version_compare(' . $retstr . ', \'' . $value . '\', ' . (!empty($op) ? $op : '==') . ')';
1135+
return 'version_compare(' . $retstr . ', \'' . $value . '\', \'' . (!empty($op) ? $op : '==') . '\')';
11361136
} else {
11371137
return $retstr.$comp_str;
11381138
}
11391139
}
11401140
else {
11411141
if(isset($format) && isset($value) && $format == 'version') {
1142-
return 'version_compare(' . $retstr."['".$varname."']" . ', \'' . $value . '\', ' . (!empty($op) ? $op : '==') . ')';
1142+
return 'version_compare(' . $retstr."['".$varname."']" . ', \'' . $value . '\', \'' . (!empty($op) ? $op : '==') . '\')';
11431143
} else {
11441144
return $retstr."['".$varname."']".$comp_str;
11451145
}

0 commit comments

Comments
 (0)