X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2Fapi%2FSearchApi.php;h=6f46c565cd3bc822cb931988810a86eaa8680f2a;hb=359df670e144f07eaaead129f6e6d90c70349ef9;hp=02abb1e1c449c43f885f158a3ebd42ba1b107027;hpb=e3705c7b17aac5e0c7866e1d03efa7e6b7998ddf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/SearchApi.php b/includes/api/SearchApi.php index 02abb1e1c4..6f46c565cd 100644 --- a/includes/api/SearchApi.php +++ b/includes/api/SearchApi.php @@ -99,6 +99,7 @@ trait SearchApi { * * @return array array containing available additional api param definitions. * Empty if profiles are not supported by the searchEngine implementation. + * @suppress PhanTypeMismatchDimFetch */ private function buildProfileApiParam() { $configs = $this->getSearchProfileParams(); @@ -119,6 +120,7 @@ trait SearchApi { if ( isset( $profile['desc-message'] ) ) { $helpMessages[$profile['name']] = $profile['desc-message']; } + if ( !empty( $profile['default'] ) ) { $defaultProfile = $profile['name']; }