X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchSuggestion.php;h=80a437b6c9c4ea52bd6d2d75522e4e65dc1990f4;hb=47b93ded1388ce5712d0a816db4ddd3466609bcd;hp=cd9062b16fcbe6bfe3d8d9c630b73c9b6d2c0b0b;hpb=69cc66efeb9379b3ed5ae53250865ae25f2b745d;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 ) ); } }