summaryrefslogtreecommitdiff
path: root/protected/controllers/SearchController.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/controllers/SearchController.php')
-rw-r--r--protected/controllers/SearchController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/protected/controllers/SearchController.php b/protected/controllers/SearchController.php
index 2cf87df..1dd2414 100644
--- a/protected/controllers/SearchController.php
+++ b/protected/controllers/SearchController.php
@@ -2,7 +2,7 @@
class SearchController extends Controller
{
- public static $Searchables = array('Verein' => array('beschreibung'),'Sitecontent'=>array('content'));
+ public static $Searchables = array('Verein' => array('beschreibung'),'Sitecontent'=>array('content','title'));
public function actionIndex()
{
$this->render('index');
@@ -14,7 +14,7 @@ class SearchController extends Controller
foreach (SearchController::$Searchables as $searchable => $columns) {
$q = new CDbCriteria();
foreach ($columns as $col) {
- $q->addSearchCondition($col,$_POST['search']);
+ $q->addSearchCondition($col,$_POST['search'],true,'OR');
}
$results[$searchable]=CActiveRecord::model($searchable)->findAll($q);
}