earliert I posted a question about warnings in PHP 8.
PHP 8 seems to throw a warning, when one tries to use an uninitialized variable.
I notice, that the file \datalist.php which is generated by AppGini produces this error:
Here are some positions:
Code: Select all
function validate_filters($req, $FiltersPerGroup = 4, $is_gpc = true) {
...
for($j = $i; $j < ($i + $FiltersPerGroup); $j++) {
if($ffield[$j]) $empty_group = false; <--------------- this line
}
...
Code: Select all
function Render() {
...
if($dvShown && $tvShown) $this->ContentType = 'tableview+detailview'; <--------------- this line
...
Code: Select all
private function isValidFilter($index) {
return (
($this->FilterAnd[$index] != '' || $index == 1) <--------------- this line
&& $this->FilterField[$index] != '' <--------------- this line
&& $this->FilterOperator[$index] != '' <--------------- probably this line too
&& (
strlen($this->FilterValue[$index]) <--------------- probably this line too
|| strpos($this->FilterOperator[$index], 'empty') !== false <--------------- probably this line too
)
);
}
Code: Select all
if (isset(FilterAnd[$index])) {
// here the regular code
}
Olaf