Fix systematic errors in pagination, sucursal warnings, and fatal count() errors across multiple modules

This commit is contained in:
2026-01-07 01:06:27 -06:00
parent aaa77e870e
commit 3a5afa82fe
354 changed files with 9022 additions and 15093 deletions

View File

@@ -254,7 +254,10 @@ public function DatabaseConnect()
if ($this->connection instanceof MockDatabase) {
$this->sqlResult->free();
} else {
@mysqli_free_result($this->sqlResult);
// Only free if it's actually a result object, not a boolean
if ($this->sqlResult instanceof mysqli_result) {
@mysqli_free_result($this->sqlResult);
}
}
//$this->query = "";
}