madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21341: LJSUP-9307: uninitialized value in strin...

Committer: sbelyaev
LJSUP-9307: uninitialized value in string
U   trunk/cgi-bin/LJ/DelayedEntry.pm
Modified: trunk/cgi-bin/LJ/DelayedEntry.pm
===================================================================
--- trunk/cgi-bin/LJ/DelayedEntry.pm	2012-03-11 14:22:44 UTC (rev 21340)
+++ trunk/cgi-bin/LJ/DelayedEntry.pm	2012-03-11 14:26:42 UTC (rev 21341)
@@ -983,7 +983,7 @@
     my $can_manage = $poster->can_manage($uowner) || 0;
     my $moderated = $uowner->prop('moderated') || '';
     my $need_moderated = ( $moderated =~ /^[1A]$/ ) ? 1 : 0;
-    if ( $req && $uowner->{'moderated'} eq 'F' ) {
+    if ( $req && $uowner->{'moderated'} && $uowner->{'moderated'} eq 'F' ) {
         ## Scan post for spam
         LJ::run_hook('spam_community_detector', $uowner, $req, \$need_moderated);
     }

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