*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:
Alexander A. Klimov 2020-12-03 19:42:19 +01:00 committed by Johannes Meyer
parent 2990ca09ab
commit 6d5024c671
2 changed files with 2 additions and 2 deletions

View File

@ -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'"
);

View File

@ -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'"
);