diff --git a/app/fifo_list/fifo_interactive_inc.php b/app/fifo_list/fifo_interactive_inc.php index e2b3c9a051..0527ffda28 100644 --- a/app/fifo_list/fifo_interactive_inc.php +++ b/app/fifo_list/fifo_interactive_inc.php @@ -134,7 +134,7 @@ echo "".$text['label-duration']."\n"; echo "\n"; - if (is_array($xml->fifo->callers->caller) && @sizeof($xml->fifo->callers->caller) != 0) { + if ($xml->fifo->callers->caller && @sizeof($xml->fifo->callers->caller) != 0) { foreach ($xml->fifo->callers->caller as $row) { /* $username = $row->caller_profile->username; @@ -218,7 +218,7 @@ echo "\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) { + if ($xml->fifo->outbound->member && @sizeof($xml->fifo->outbound->member) != 0) { foreach ($xml->fifo->outbound->member as $row) { $username=explode("@",$row); $username=explode("/",$username[0]);