From 5c3b319606941a73b45f71be6b6c0bfa69f7941a Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Tue, 29 Jul 2025 15:28:43 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20Companies.class.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/model/Companies.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/model/Companies.class.php b/vendor/model/Companies.class.php index 9d48386..bd73b70 100644 --- a/vendor/model/Companies.class.php +++ b/vendor/model/Companies.class.php @@ -121,7 +121,7 @@ class Companies $this->start = $start; $this->max = $max; $this->typeSearch = $typeSearch; - $this->search = '%'.$search.'%'; + $this->search = !empty($search) ? '%'.$search.'%' : ''; /** Verifico se há paginação */ if($this->max){ @@ -182,7 +182,7 @@ class Companies public function Count(?int $typeSearch, ?string $search) { $this->typeSearch = $typeSearch; - $this->search = '%'.$search.'%'; + $this->search = !empty($search) ? '%'.$search.'%' : ''; /** Consulta SQL */ $this->sql = 'select count(c.company_id) as qtde