Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r20211: LJSUP-10003 (remove a warning in LJ/Lang...

Committer: ailyin
LJSUP-10003 (remove a warning in LJ/Lang.pm +120)
U   trunk/cgi-bin/LJ/Lang.pm
Modified: trunk/cgi-bin/LJ/Lang.pm
===================================================================
--- trunk/cgi-bin/LJ/Lang.pm	2011-10-04 05:48:25 UTC (rev 20210)
+++ trunk/cgi-bin/LJ/Lang.pm	2011-10-04 05:57:48 UTC (rev 20211)
@@ -116,6 +116,9 @@
 
 sub get_lang {
     my $code = shift;
+
+    return unless defined $code;
+
     load_lang_struct() unless $LS_CACHED;
     return $LN_CODE{$code};
 }

Tags: andy, livejournal, pm
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments