Fix a problem in xml_cdr for displaying a user's calls.
This commit is contained in:
parent
71cf5a3521
commit
8c242e949f
|
|
@ -122,13 +122,13 @@ else {
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach($_SESSION['user']['extension'] as $row) {
|
foreach($_SESSION['user']['extension'] as $row) {
|
||||||
if ($x==0) {
|
if ($x==0) {
|
||||||
if ($row['user'] > 0) { $sql_where .= "caller_id_number = '".$row['user']."' \n"; } //source
|
if (strlen($row['user']) > 0) { $sql_where .= "caller_id_number = '".$row['user']."' \n"; } //source
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($row['user'] > 0) { $sql_where .= "or caller_id_number = '".$row['user']."' \n"; } //source
|
if (strlen($row['user']) > 0) { $sql_where .= "or caller_id_number = '".$row['user']."' \n"; } //source
|
||||||
}
|
}
|
||||||
if ($row['user'] > 0) { $sql_where .= "or destination_number = '".$row['user']."' \n"; } //destination
|
if (strlen($row['user']) > 0) { $sql_where .= "or destination_number = '".$row['user']."' \n"; } //destination
|
||||||
if ($row['user'] > 0) { $sql_where .= "or destination_number = '*99".$row['user']."' \n"; } //destination
|
if (strlen($row['user']) > 0) { $sql_where .= "or destination_number = '*99".$row['user']."' \n"; } //destination
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue