From 5b95fcfca03322e944799452d7301b1efe427c11 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Mon, 20 Nov 2017 23:58:35 +0300 Subject: [PATCH] Fix. Display statistic for all domains (showall=true) (#2915) --- app/xml_cdr/xml_cdr_statistics_inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/xml_cdr/xml_cdr_statistics_inc.php b/app/xml_cdr/xml_cdr_statistics_inc.php index 6b3bebe618..7b79cda488 100644 --- a/app/xml_cdr/xml_cdr_statistics_inc.php +++ b/app/xml_cdr/xml_cdr_statistics_inc.php @@ -233,9 +233,10 @@ else { } } + $sql_where = ' where '; // concatenate the 'ands's array, add to where clause if (sizeof($sql_where_ands) > 0) { - $sql_where = " where ".implode(" and ", $sql_where_ands)." and "; + $sql_where .= implode(" and ", $sql_where_ands)." and "; } //calculate the seconds in different time frames