Fixed minor bugs and format

This commit is contained in:
Luis Calvo 2019-07-22 15:49:12 +02:00
parent 38f1c45698
commit 6aa652649d
1 changed files with 2 additions and 4 deletions

View File

@ -12090,11 +12090,9 @@ function reporting_label_macro($item, $label)
* @param string $sql
* @return $ql
*/
function reporting_sql_macro($report, $sql)
function reporting_sql_macro(array $report, string $sql): string
{
if (preg_match('/_timefrom/', $sql)) {
if (preg_match('/_timefrom_/', $sql)) {
$sql = str_replace(
'_timefrom_',
$report['datetime'],