summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2015-07-25 19:21:49 -0500
committerk-paulius <k.dash.paulius@gmail.com>2015-07-25 19:21:49 -0500
commit29fc0334f49a0a1b7e98b5bc2d1084075f1ce335 (patch)
tree9d3d37af01000226fa1b0ed6a920534dbe11aecf
parentff01ab1a7460a6061f2df3f8cf50b744ba5dc912 (diff)
downloadpfsense-29fc0334f49a0a1b7e98b5bc2d1084075f1ce335.zip
pfsense-29fc0334f49a0a1b7e98b5bc2d1084075f1ce335.tar.gz
Initialize variables
-rw-r--r--usr/local/www/pkg_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index 4f21a9a..28c1be3 100644
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -202,6 +202,7 @@ if ($_POST) {
$rowhelpername="row";
foreach ($fields['rowhelper']['rowhelperfield'] as $rowhelperfield) {
foreach ($_POST as $key => $value) {
+ $matches = array();
if (preg_match("/^{$rowhelperfield['fieldname']}(\d+)$/", $key, $matches)) {
$pkgarr[$rowhelpername][$matches[1]][$rowhelperfield['fieldname']] = $value;
}
@@ -471,6 +472,7 @@ if ($pkg['tabs'] <> "") {
$advanced = "<td>&nbsp;</td>";
$advanced .= "<tr><td colspan=\"2\" class=\"listtopic\">". gettext("Advanced features") . "<br /></td></tr>\n";
}
+ $js_array = array();
foreach ($pkg['fields']['field'] as $pkga) {
if ($pkga['type'] == "sorting") {
continue;
OpenPOWER on IntegriCloud