Hi, stumbled across this from a warning in the logs file, just seems the logic is incorrect as code will throw the warning before the if statement has acted?
Line 623 in includes/classes/db/query_factory.php
Code:
} else {
$zp_result_array = @mysqli_fetch_assoc($this->resource);
$this->fields = array_replace($this->fields, $zp_result_array);
if (!$zp_result_array) {
$this->EOF = true;
unset($this->fields);
}
should it not be
Code:
} else {
$zp_result_array = @mysqli_fetch_assoc($this->resource);
if (!$zp_result_array) {
$this->EOF = true;
unset($this->fields);
}else{
$this->fields = array_replace($this->fields, $zp_result_array);
}
Bookmarks