wildkin wrote in changelog

[livejournal] r20975: LJSUP-10951: Return spellcheck to S1

Committer: dnikolaev
LJSUP-10951: Return spellcheck to S1

U   trunk/cgi-bin/LJ/SpellCheck.pm
Modified: trunk/cgi-bin/LJ/SpellCheck.pm
===================================================================
--- trunk/cgi-bin/LJ/SpellCheck.pm	2012-01-24 12:42:29 UTC (rev 20974)
+++ trunk/cgi-bin/LJ/SpellCheck.pm	2012-01-24 12:59:24 UTC (rev 20975)
@@ -140,10 +140,10 @@
     my $handler_misspelled = sub {
         my ($word, $suggestions_str) = @_;
 
-        return unless $suggestions_str;
+        # return unless $suggestions_str;
         return if exists $words{$word};
 
-        my @suggestions = split qr/,\s*/, $suggestions_str;
+        my @suggestions = split qr/,\s*/, ($suggestions_str || '');
         if ($limit && @suggestions > $limit) {
             @suggestions = @suggestions[0 .. $limit - 1];
         }