madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12507: LJSUP-13301: Main page optimization

Committer: sbelyaev
LJSUP-13301: Main page optimization
U   trunk/cgi-bin/LJ/SUP.pm
Modified: trunk/cgi-bin/LJ/SUP.pm
===================================================================
--- trunk/cgi-bin/LJ/SUP.pm	2012-08-21 11:35:37 UTC (rev 12506)
+++ trunk/cgi-bin/LJ/SUP.pm	2012-08-21 12:08:45 UTC (rev 12507)
@@ -26,6 +26,7 @@
 {
     my $class = shift;
     my $u = shift;
+    return 0 unless $u;
     return $u->{sup_enabled} if exists $u->{sup_enabled};
     my $enabled = $u && $u->in_class('sup_user') && !$u->in_class('sup_optout');
     $u->{sup_enabled} = $enabled;

Tags: ljcom, madeon, pm, sbelyaev
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