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) {