vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r7182: LJSUP-4179: remove "my $x if cond()" con...

Committer: vad
LJSUP-4179: remove "my $x if cond()" construction.

U   trunk/htdocs/friends/find.bml
Modified: trunk/htdocs/friends/find.bml
===================================================================
--- trunk/htdocs/friends/find.bml	2009-04-08 07:40:14 UTC (rev 7181)
+++ trunk/htdocs/friends/find.bml	2009-04-08 07:46:27 UTC (rev 7182)
@@ -23,7 +23,7 @@
         }
     }
 
-    my $getextra = '?' . join('&', @getargs) if @getargs;
+    my $getextra = @getargs ? '?' . join('&', @getargs) : '';
     return BML::redirect("$LJ::SSLROOT/friends/find.bml$getextra") if $LJ::USE_SSL && !$LJ::IS_SSL;
 
     my $remote = LJ::get_remote();

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