From 3b50b080914295b33084e9ad07730f3459f0ca70 Mon Sep 17 00:00:00 2001 From: Wes Gorgichuk Date: Fri, 18 Jun 2021 14:58:59 -0700 Subject: [PATCH] Fix the db-> exists check. --- server/core/DB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/DB.php b/server/core/DB.php index 896aab9a..4d501d5d 100644 --- a/server/core/DB.php +++ b/server/core/DB.php @@ -134,7 +134,7 @@ function exists($table, $values, &$result = null) { $q = "SELECT * FROM $table WHERE {$where} LIMIT 1"; $result = $this->execute($q, $params); - return !is_null($result); + return count($result) > 0; } function getLastError() {