Better search

This commit is contained in:
Michael RICOIS 2012-08-21 15:33:02 +00:00
parent e5fcc48b05
commit 3583fdd333

View File

@ -98,7 +98,7 @@ class FieldsController extends Zend_Controller_Action
$i = 0;
foreach ($queries as $item) {
if (strlen($item)>2) {
$where = 'LIKE "%'.strtolower($item).'%"';
$where.= 'LIKE "%'.strtolower($item).'%"';
}
$i++;
if (count($queries) < $i){
@ -123,7 +123,7 @@ class FieldsController extends Zend_Controller_Action
$i = 0;
foreach ($queries as $item) {
if (strlen($item)>2) {
$where = 'LIKE "%'.strtolower($item).'%"';
$where.= 'LIKE "%'.strtolower($item).'%"';
}
$i++;
if (count($queries) < $i){
@ -148,7 +148,7 @@ class FieldsController extends Zend_Controller_Action
$i = 0;
foreach ($queries as $item) {
if (strlen($item)>2) {
$where = 'LIKE "'.strtolower($item).'"';
$where.= 'LIKE "%'.strtolower($item).'%"';
}
$i++;
if (count($queries) < $i){
@ -217,7 +217,6 @@ class FieldsController extends Zend_Controller_Action
}
$this->view->assign('output', $output);
}
public function checkvalue(){}