mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed minor bugs and format
This commit is contained in:
parent
6aa652649d
commit
ffec3150d4
@ -12086,13 +12086,14 @@ function reporting_label_macro($item, $label)
|
||||
/**
|
||||
* Convert macro in sql string to value
|
||||
*
|
||||
* @param array $report
|
||||
* @param string $sql
|
||||
* @return $ql
|
||||
* @param array $report
|
||||
* @param string $sql
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user