mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Eliminate extra space after template parsing
This commit is contained in:
parent
e70e0b7610
commit
1be00369fc
@ -531,6 +531,7 @@ function parse_package_templates() {
|
||||
// save rowhelper items.
|
||||
for($x=0; $x<99; $x++) { // XXX: this really should be passed from the form.
|
||||
$row_helper_data = "";
|
||||
$isfirst = 0;
|
||||
foreach($fields['rowhelper']['rowhelperfield'] as $rowhelperfield) {
|
||||
if($firstfield == "") {
|
||||
$firstfield = $rowhelperfield['fieldname'];
|
||||
@ -540,7 +541,9 @@ function parse_package_templates() {
|
||||
$comd = "\$value = \$_POST['" . $rowhelperfield['fieldname'] . $x . "'];";
|
||||
eval($comd);
|
||||
if($value <> "") {
|
||||
$row_helper_data .= $value . " " ;
|
||||
if($isfirst == 1) $row_helper_data .= " " ;
|
||||
$row_helper_data .= $value;
|
||||
$isfirst = 1;
|
||||
}
|
||||
ereg($rowhelperfield['fieldname'] . "_fieldvalue\[(.*)\]", $template_text, $sep);
|
||||
foreach ($sep as $se) $seperator = $se;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user