From eb935213121b533f45c4c8a5129425913c922efd Mon Sep 17 00:00:00 2001 From: Adrien Morais Date: Mon, 18 Jan 2021 15:49:43 +0100 Subject: [PATCH] code-review: take feedbacks into account #2 --- www/include/reporting/dashboard/common-Func.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/include/reporting/dashboard/common-Func.php b/www/include/reporting/dashboard/common-Func.php index 718aea2b4ad..d354e054346 100644 --- a/www/include/reporting/dashboard/common-Func.php +++ b/www/include/reporting/dashboard/common-Func.php @@ -67,8 +67,7 @@ function getPeriodToReport() $interval = array(0, 0); - if ( - $periodChoice == 'custom' && + if ($periodChoice == 'custom' && $startDate != '' && $endDate != '' ) {