vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r19411: LJSUP-9210: Remove some warnings

Committer: vsukhanov
LJSUP-9210: Remove some warnings
U   trunk/cgi-bin/LJ/Setting/CommentScreening.pm
Modified: trunk/cgi-bin/LJ/Setting/CommentScreening.pm
===================================================================
--- trunk/cgi-bin/LJ/Setting/CommentScreening.pm	2011-06-30 10:14:18 UTC (rev 19410)
+++ trunk/cgi-bin/LJ/Setting/CommentScreening.pm	2011-07-01 03:37:50 UTC (rev 19411)
@@ -25,7 +25,7 @@
     my ($class, $u, $errs, $args) = @_;
     my $key = $class->pkgkey;
 
-    my $commentscreening = $class->get_arg($args, "commentscreening") || $u->prop("opt_whoscreened");
+    my $commentscreening = $class->get_arg($args, "commentscreening") || $u->prop("opt_whoscreened") || '';
     if ($commentscreening eq 'L') {
         $u->set_prop( opt_whoscreened => 'R' );
         $commentscreening = 'R';

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