Bug fix in DB\IO for wrong array check

Did not use empty to check if query called hash entry exists
This commit is contained in:
Clemens Schwaighofer
2022-12-28 11:26:56 +09:00
parent 8ef309d479
commit b1be681afb

View File

@@ -2206,7 +2206,7 @@ class IO
public function dbGetQueryCalled(string $query): int
{
$query_hash = $this->dbGetQueryHash($query);
if ($this->query_called[$query_hash]) {
if (!empty($this->query_called[$query_hash])) {
return $this->query_called[$query_hash];
} else {
return 0;