From a9f74572adcc6db6912947a0ca7b169032dc181d Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 20 May 2025 14:11:26 +0200 Subject: [PATCH] modified faulty view --- .../ConstructionConsentProject/ConstructionConsentProject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/ConstructionConsentProject/ConstructionConsentProject.php b/application/ConstructionConsentProject/ConstructionConsentProject.php index bda2833e3..1d7c2965b 100644 --- a/application/ConstructionConsentProject/ConstructionConsentProject.php +++ b/application/ConstructionConsentProject/ConstructionConsentProject.php @@ -293,8 +293,8 @@ AND ( ) LIMIT 1"; - $result = $db->query($sql); - return $result->rowCount() > 0; + $res = $db->query($sql); + return ($res->num_rows > 0); } public static function getFaultyOwnerEntries($projectId = null) {