X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FController%2FSearch.php;h=dad7c7cdddf8ad700d413547208fd2eaacbd7105;hb=cda772aae0c600de9033d3360dfde772a2a78f64;hp=a56bbbb788cd01ac533f9ea7bf213e69c6b64b0f;hpb=58a50b22e20f112fdbfc7e50f18353c311ceb1ae;p=civicrm-core.git diff --git a/CRM/Contact/Controller/Search.php b/CRM/Contact/Controller/Search.php index a56bbbb788..dad7c7cddd 100644 --- a/CRM/Contact/Controller/Search.php +++ b/CRM/Contact/Controller/Search.php @@ -1,7 +1,7 @@ _stateMachine = new CRM_Contact_StateMachine_Search($this, $action); @@ -75,17 +79,17 @@ class CRM_Contact_Controller_Search extends CRM_Core_Controller { // see if we can figure out the url and redirect to the right search form // note that this happens really early on, so we cant use any of the form or controller // variables - $config = CRM_Core_Config::singleton(); + $config = CRM_Core_Config::singleton(); $qString = $_GET[$config->userFrameworkURLVar]; $args = "reset=1"; $path = 'civicrm/contact/search/advanced'; if (strpos($qString, 'basic') !== FALSE) { $path = 'civicrm/contact/search/basic'; } - else if (strpos($qString, 'builder') !== FALSE) { + elseif (strpos($qString, 'builder') !== FALSE) { $path = 'civicrm/contact/search/builder'; } - else if ( + elseif ( strpos($qString, 'custom') !== FALSE && isset($_REQUEST['csid']) ) { @@ -98,4 +102,3 @@ class CRM_Contact_Controller_Search extends CRM_Core_Controller { } } -