Active Queues: Hide array warnings.

This commit is contained in:
Nate 2019-09-16 06:48:50 -06:00
parent 231ac12381
commit afca52f267
1 changed files with 73 additions and 69 deletions

View File

@ -134,6 +134,7 @@
echo "<th>".$text['label-duration']."</th>\n";
echo "</tr>\n";
if (is_array($xml->fifo->callers->caller) && @sizeof($xml->fifo->callers->caller) != 0) {
foreach ($xml->fifo->callers->caller as $row) {
/*
$username = $row->caller_profile->username;
@ -192,7 +193,8 @@
echo "<td valign='top' class='".$row_style[$c]."'>".escape($fifo_status)." &nbsp;</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".escape($fifo_duration_formatted)." &nbsp;</td>\n";
echo "</tr>\n";
if ($c==0) { $c=1; } else { $c=0; }
$c = $c ? 0 : 1;
}
}
echo "</table>\n";
@ -216,6 +218,7 @@
echo "</tr>\n";
//print_r($xml->fifo->outbound->member[0]);
//print_r($xml->fifo->outbound->member[1]);
if (is_array($xml->fifo->outbound->member) && @sizeof($xml->fifo->outbound->member) != 0) {
foreach ($xml->fifo->outbound->member as $row) {
$username=explode("@",$row);
$username=explode("/",$username[0]);
@ -231,6 +234,7 @@
echo "</tr>\n";
$c = $c ? 0 : 1;
}
}
echo "</table>\n";
}