summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-19 03:08:14 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-19 03:08:14 +0000
commit2d512c8446ca5860a286fc786e245b254dbb937f (patch)
treee2eafc82dc967f899a024646f5dedffce0d10dcb /usr/local
parent64fba011ba07b693fb9eb74a3c28ceb28b686b4c (diff)
downloadpfsense-2d512c8446ca5860a286fc786e245b254dbb937f.zip
pfsense-2d512c8446ca5860a286fc786e245b254dbb937f.tar.gz
Do not attempt to foreach through the ['adddeleteeditpagefields']['columnitem'] if it does not exist
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/pkg.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php
index 748045b..6eee522 100755
--- a/usr/local/www/pkg.php
+++ b/usr/local/www/pkg.php
@@ -158,10 +158,12 @@ if ($pkg['tabs'] <> "") {
<tr>
<?php
$cols = 0;
- foreach ($pkg['adddeleteeditpagefields']['columnitem'] as $column) {
- echo "<td class=\"listhdrr\">" . $column['fielddescr'] . "</td>";
- $cols++;
- }
+ if($pkg['adddeleteeditpagefields']['columnitem'] <> "") {
+ foreach ($pkg['adddeleteeditpagefields']['columnitem'] as $column) {
+ echo "<td class=\"listhdrr\">" . $column['fielddescr'] . "</td>";
+ $cols++;
+ }
+ }
echo "</tr>";
$i=0;
if($evaledvar)
OpenPOWER on IntegriCloud