wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17208: LJSUP-6634. there is no buy same userhea...

Committer: gprochaev
LJSUP-6634. there is no buy same userhead link on hover menu

U   trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-08-26 15:52:26 UTC (rev 17207)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-08-27 03:31:45 UTC (rev 17208)
@@ -73,7 +73,11 @@
 
     $ret{url_buy_userhead} = $LJ::SITEROOT."/shop/userheads.bml";
     my $usericon = $u->custom_usericon;
-    $ret{is_custom_userhead} = scalar grep { $usericon eq $_ } @LJ::DEFAULT_USERHEADS_LIST ? 1 : 0;
+    if ($usericon eq '' || scalar grep { $usericon eq $_ } @LJ::DEFAULT_USERHEADS_LIST) {
+        $ret{is_custom_userhead} = 0;
+    } else {
+        $ret{is_custom_userhead} = 1;
+    }
 
     my $up = $u->userpic;
     if ($up) {

Tags: bml, livejournal, wisest-owl
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