From aee554aaeb638a0dba50500e07d978405bfc1a36 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 24 Feb 2014 17:15:34 +0100 Subject: [PATCH] Fix searching; indention. --- sesha/list.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/sesha/list.php b/sesha/list.php index e42ec1ce06a..b62f574cd6f 100644 --- a/sesha/list.php +++ b/sesha/list.php @@ -18,7 +18,7 @@ /* Init some form vars. This is about the search field in the topbar */ $vars = Horde_Variables::getDefaultVariables(); -if ($vars->searchfield || $vars->location) { +if ($vars->searchfield) { $vars->criteria = $vars->searchfield; $vars->location = array(Sesha::SEARCH_ID, Sesha::SEARCH_NAME); } @@ -37,16 +37,16 @@ if (Horde_Util::getFormData('criteria')) { $sesha->highlight = 'sesha-search'; } -$view = new Sesha_View_List(array('templatePath' => SESHA_TEMPLATES . '/view/', - 'selectedCategories' => array(Horde_Util::getFormData('category_id')), - 'sortDir' => Horde_Util::getFormData('sortdir'), - 'sortBy' => Horde_Util::getFormData('sortby'), - 'propertyIds' => @unserialize($prefs->getValue('list_properties')), - 'what' => $vars->criteria, - 'exact' => Horde_Util::getFormData('exact'), - 'loc' => $vars->location - ) - ); +$view = new Sesha_View_List(array( + 'templatePath' => SESHA_TEMPLATES . '/view/', + 'selectedCategories' => array(Horde_Util::getFormData('category_id')), + 'sortDir' => Horde_Util::getFormData('sortdir'), + 'sortBy' => Horde_Util::getFormData('sortby'), + 'propertyIds' => @unserialize($prefs->getValue('list_properties')), + 'what' => $vars->criteria, + 'exact' => Horde_Util::getFormData('exact'), + 'loc' => $vars->location +)); $page_output->header(array( 'title' => $view->title ));