Fixed minor bugs and format

This commit is contained in:
Luis Calvo 2019-07-22 16:03:50 +02:00
parent 6aa652649d
commit ffec3150d4
1 changed files with 5 additions and 4 deletions

View File

@ -12086,13 +12086,14 @@ function reporting_label_macro($item, $label)
/** /**
* Convert macro in sql string to value * Convert macro in sql string to value
* *
* @param array $report * @param array $report
* @param string $sql * @param string $sql
* @return $ql *
* @return string
*/ */
function reporting_sql_macro(array $report, string $sql): string function reporting_sql_macro(array $report, string $sql): string
{ {
if (preg_match('/_timefrom_/', $sql)) { if (preg_match('/_timefrom/', $sql)) {
$sql = str_replace( $sql = str_replace(
'_timefrom_', '_timefrom_',
$report['datetime'], $report['datetime'],