Atualização Companies.class.php
This commit is contained in:
parent
8534de3f88
commit
540c44453b
1 changed files with 1 additions and 3 deletions
4
vendor/model/Companies.class.php
vendored
4
vendor/model/Companies.class.php
vendored
|
|
@ -186,7 +186,7 @@ class Companies
|
|||
|
||||
/** Consulta SQL */
|
||||
$this->sql = 'select count(c.company_id) as qtde
|
||||
from companies c';
|
||||
from companies c ';
|
||||
|
||||
/** Verifica se há pesquisa */
|
||||
if($this->typeSearch && $this->search){
|
||||
|
|
@ -213,8 +213,6 @@ class Companies
|
|||
$this->sql .= 'where (select count(s.state_id) from states s where uf = :search and s.state_id = c.state_id) > 0';
|
||||
}
|
||||
}
|
||||
|
||||
echo $this->sql;
|
||||
|
||||
/** Preparo o SQL para execução */
|
||||
$this->stmt = $this->connection->connect()->prepare($this->sql);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue