madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20410: LJSUP-10205: Code is simplified

Committer: sbelyaev
LJSUP-10205: Code is simplified
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-10-24 04:55:33 UTC (rev 20409)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-10-24 07:58:14 UTC (rev 20410)
@@ -848,8 +848,9 @@
                 }   
             };
 
-            my $disabled = $remote ? !($remote->can_manage($journalu) || 0) : 0;
-            return '' if $disabled;
+            if (!$remote || !$remote->can_manage($journalu)) {
+                return '';
+            }
 
             my $selected = $is_checked->();
             my $sticky_check = LJ::html_check({

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