diff --git a/application/ConstructionConsent/ConstructionConsent.php b/application/ConstructionConsent/ConstructionConsent.php index 5d72ae242..39bd972f1 100644 --- a/application/ConstructionConsent/ConstructionConsent.php +++ b/application/ConstructionConsent/ConstructionConsent.php @@ -583,7 +583,7 @@ class ConstructionConsent extends mfBaseModel { if (array_key_exists("cwo", $filter)) { $where .= " AND EXISTS (SELECT 1 FROM ConstructionConsentOwner co WHERE co.constructionconsent_id = ConstructionConsent.id AND - (co.firstname LIKE '%".$filter['cwo']."%' OR co.lastname LIKE '%".$filter['cwo']."%'))"; + LOWER(CONCAT(co.FIRST_NAME, ' ', co.LAST_NAME)) LIKE LOWER('%".$filter['cwo']."%')"; } diff --git a/public/index.php b/public/index.php index 5ef8213f6..c6b0ec1e7 100755 --- a/public/index.php +++ b/public/index.php @@ -5,6 +5,14 @@ // phpinfo(); exit; define('mfUI',"web"); +// set max memory to 4GB +ini_set('memory_limit', '4096M'); + +//display errors +ini_set('display_errors', 1); +ini_set('display_startup_errors', 1); +ini_set('error_reporting', E_ALL); + if(file_exists("../config/config.php")) { require("../config/config.php"); } else {