mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
*downtimestarthistoryQuery#joinBaseTables(): don't call func_get_arg() with an invalid index
... as PHP 8 doesn't tolerate that. refs #4287
This commit is contained in:
parent
2990ca09ab
commit
6d5024c671
@ -96,7 +96,7 @@ class HostdowntimestarthistoryQuery extends IdoQuery
|
||||
array()
|
||||
);
|
||||
|
||||
if (@func_get_arg(0) === false) {
|
||||
if (func_num_args() === 0 || func_get_arg(0) === false) {
|
||||
$this->select->where(
|
||||
"hdh.actual_start_time > '1970-01-02 00:00:00'"
|
||||
);
|
||||
|
@ -97,7 +97,7 @@ class ServicedowntimestarthistoryQuery extends IdoQuery
|
||||
array()
|
||||
);
|
||||
|
||||
if (@func_get_arg(0) === false) {
|
||||
if (func_num_args() === 0 || func_get_arg(0) === false) {
|
||||
$this->select->where(
|
||||
"sdh.actual_start_time > '1970-01-02 00:00:00'"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user