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

[ljcom] r8110: LJSV-854: ScrapBook doesn't appear to ha...

Committer: ailyin
LJSV-854: ScrapBook doesn't appear to have in_class, so let's not show
the link there at all.

U   trunk/cgi-bin/LJ/Nav.pm
Modified: trunk/cgi-bin/LJ/Nav.pm
===================================================================
--- trunk/cgi-bin/LJ/Nav.pm	2010-01-13 05:19:34 UTC (rev 8109)
+++ trunk/cgi-bin/LJ/Nav.pm	2010-01-13 05:36:34 UTC (rev 8110)
@@ -385,7 +385,7 @@
     push @friends_links, (
         { 'url' => "$siteroot/friends/holidaypromotion.bml",
           'text' => BML::ml('horizon.nav.friends.invite2paid'), },
-    ) if ($remote && ($remote->in_class('perm') || $remote->in_class('paid')));
+    ) if ($remote && UNIVERSAL::isa($remote, 'LJ::User') && ($remote->in_class('perm') || $remote->in_class('paid')));
     push @friends_links, (
         { 'url' => "$siteroot/friends/",
           'text' => BML::ml('horizon.nav.friends.other'), },

Tags: andy, ljcom, 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