X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchSuggestion.php;h=80a437b6c9c4ea52bd6d2d75522e4e65dc1990f4;hb=12313956c58e88b98d4baf722464e09b4a351bf3;hp=cd9062b16fcbe6bfe3d8d9c630b73c9b6d2c0b0b;hpb=829b2e7d0169ba977cec42df6ee83eb60de51045;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchSuggestion.php b/includes/search/SearchSuggestion.php index cd9062b16f..80a437b6c9 100644 --- a/includes/search/SearchSuggestion.php +++ b/includes/search/SearchSuggestion.php @@ -84,7 +84,7 @@ class SearchSuggestion { */ public function setText( $text, $setTitle = true ) { $this->text = $text; - if ( $setTitle && $text ) { + if ( $setTitle && $text !== '' && $text !== null ) { $this->setSuggestedTitle( Title::makeTitle( 0, $text ) ); } }