Update xml_cdr_inc.php
This commit is contained in:
parent
ae293c932e
commit
c923f11d36
|
|
@ -76,10 +76,10 @@
|
||||||
$order_by = check_str($_REQUEST["order_by"]);
|
$order_by = check_str($_REQUEST["order_by"]);
|
||||||
$order = check_str($_REQUEST["order"]);
|
$order = check_str($_REQUEST["order"]);
|
||||||
foreach ($_SESSION['cdr']['field'] as $field) {
|
foreach ($_SESSION['cdr']['field'] as $field) {
|
||||||
if (isset($_REQUEST[$field])) {
|
$array = explode(",", $field);
|
||||||
$array = explode(",", $field);
|
$field_name = end($array);
|
||||||
$field_name = end($array);
|
if (isset($_REQUEST[$field_name])) {
|
||||||
$$field = check_str($_REQUEST[$field_name]);
|
$$field_name = check_str($_REQUEST[$field_name]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (strlen(check_str($_REQUEST["mos_comparison"])) > 0) {
|
if (strlen(check_str($_REQUEST["mos_comparison"])) > 0) {
|
||||||
|
|
@ -124,11 +124,11 @@
|
||||||
if (strlen($context) > 0) { $sql_where_ands[] = "context like '%".$context."%'"; }
|
if (strlen($context) > 0) { $sql_where_ands[] = "context like '%".$context."%'"; }
|
||||||
|
|
||||||
foreach ($_SESSION['cdr']['field'] as $field) {
|
foreach ($_SESSION['cdr']['field'] as $field) {
|
||||||
if (isset($$field)) {
|
$array = explode(",", $field);
|
||||||
$array = explode(",", $field);
|
$field_name = end($array);
|
||||||
$field_name = end($array);
|
if (isset($$field_name)) {
|
||||||
$$field_name = check_str($_REQUEST[$field_name]);
|
$$field_name = check_str($_REQUEST[$field_name]);
|
||||||
$sql_where_ands[] = "$field like '%".$$field_name."%'";
|
$sql_where_ands[] = "$field_name like '%".$$field_name."%'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue