mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make sure it is an array before foreach.
This commit is contained in:
parent
0e3e825c78
commit
7c50552db5
@ -238,15 +238,17 @@ if ($pkg['tabs'] <> "") {
|
||||
$page = 1;
|
||||
$tmpcount = 0;
|
||||
$tmppp = 0;
|
||||
foreach ($evaledvar as $ipa) {
|
||||
if($tmpcount == $display_maximum_rows) {
|
||||
$page++;
|
||||
$tmpcount = 0;
|
||||
if(is_array($evaledvar)) {
|
||||
foreach ($evaledvar as $ipa) {
|
||||
if($tmpcount == $display_maximum_rows) {
|
||||
$page++;
|
||||
$tmpcount = 0;
|
||||
}
|
||||
if($tmppp == $startdisplayingat)
|
||||
break;
|
||||
$tmpcount++;
|
||||
$tmppp++;
|
||||
}
|
||||
if($tmppp == $startdisplayingat)
|
||||
break;
|
||||
$tmpcount++;
|
||||
$tmppp++;
|
||||
}
|
||||
echo "<tr><td colspan='" . count($pkg['adddeleteeditpagefields']['columnitem']) . "'>";
|
||||
echo "<table width='100%'>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user