madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21712: LJSUP-11829: Use of uninitialized value ...

Committer: sbelyaev
LJSUP-11829: Use of uninitialized value in string eq at scheduled_posts.bml
U   trunk/htdocs/manage/scheduled_posts.bml
Modified: trunk/htdocs/manage/scheduled_posts.bml
===================================================================
--- trunk/htdocs/manage/scheduled_posts.bml	2012-04-13 08:02:00 UTC (rev 21711)
+++ trunk/htdocs/manage/scheduled_posts.bml	2012-04-13 08:12:15 UTC (rev 21712)
@@ -7,7 +7,6 @@
 {
     use strict;
     use warnings;
-#line 7
 
     LJ::need_res(qw(
                     stc/editjournal.css
@@ -41,7 +40,7 @@
     my $can_viewall = LJ::check_priv($remote, "canview", "*");
 
     my $viewsome = !!$is_admin;
-    my $viewall  = ($can_viewall && $GET{'viewall'} == 1);
+    my $viewall  = ($can_viewall && $GET{'viewall'} && $GET{'viewall'} eq 1);
 
     if ($viewall && $usejournal_u) {
         

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