fix phpstan error

This commit is contained in:
Jean-Christian Denis 2022-12-17 17:37:49 +01:00
parent 21eb52577d
commit 875f3ca6dc
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -179,11 +179,11 @@ class pubSaba
if ($age[0]) {
$params['sql'] .= "AND P.post_dt < '" .
dt::str('%Y-%m-%d %H:%m:%S', $ts - $age[0]) . "' ";
dt::str('%Y-%m-%d %H:%m:%S', $ts - (int) $age[0]) . "' ";
}
if ($age[1]) {
$params['sql'] .= "AND P.post_dt > '" .
dt::str('%Y-%m-%d %H:%m:%S', $ts - $age[1]) . "' ";
dt::str('%Y-%m-%d %H:%m:%S', $ts - (int) $age[1]) . "' ";
}
}