summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-15 03:33:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-15 03:33:18 +0000
commit767a716ecd96105621e239633c04651a02bd8fb8 (patch)
treea9455173dba67b71599f611cb3eebb6aaa584745 /usr/local/www/pkg_edit.php
parent3e789a8b1385cbd0ccc952b7eac5e1e01ff1a478 (diff)
downloadpfsense-767a716ecd96105621e239633c04651a02bd8fb8.zip
pfsense-767a716ecd96105621e239633c04651a02bd8fb8.tar.gz
Correct warnings and errors found eclipse
Diffstat (limited to 'usr/local/www/pkg_edit.php')
-rwxr-xr-xusr/local/www/pkg_edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index 244df30..90e938e 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -600,11 +600,12 @@ function fixup_string($string) {
*/
function parse_package_templates() {
global $pkg, $config;
+ $rows = 0;
if($pkg['templates']['template'] <> "")
foreach($pkg['templates']['template'] as $pkg_template_row) {
$filename = $pkg_template_row['filename'];
$template_text = $pkg_template_row['templatecontents'];
-
+ $firstfield = "";
/* calculate total row helpers count */
foreach ($pkg['fields']['field'] as $fields) {
if($fields['type'] == "rowhelper") {
@@ -618,6 +619,7 @@ function parse_package_templates() {
if($firstfield == $rowhelperfield['fieldname']) $rows++;
}
$comd = "\$value = \$_POST['" . $rowhelperfield['fieldname'] . $x . "'];";
+ $value = "";
eval($comd);
if($value <> "") {
//$template_text = str_replace($fieldname . "_fieldvalue", $fieldvalue, $template_text);
@@ -653,6 +655,7 @@ function parse_package_templates() {
$row_helper_data .= $value;
$isfirst = 1;
}
+ $sep = "";
ereg($rowhelperfield['fieldname'] . "_fieldvalue\[(.*)\]", $template_text, $sep);
foreach ($sep as $se) $seperator = $se;
if($seperator <> "") {
OpenPOWER on IntegriCloud