*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…
Reference in New Issue