Fix systematic errors in pagination, sucursal warnings, and fatal count() errors across multiple modules
This commit is contained in:
@@ -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 = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user