From b1be681afbac58654f867f8189b35556205e432e Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 28 Dec 2022 11:26:56 +0900 Subject: [PATCH] Bug fix in DB\IO for wrong array check Did not use empty to check if query called hash entry exists --- www/lib/CoreLibs/DB/IO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/lib/CoreLibs/DB/IO.php b/www/lib/CoreLibs/DB/IO.php index 7b1f67bc..540e4a92 100644 --- a/www/lib/CoreLibs/DB/IO.php +++ b/www/lib/CoreLibs/DB/IO.php @@ -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;