fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-10-23 03:06 am

[dw-free] clean up log messages that appear when global warnings are on

[commit: http://hg.dwscoalition.org/dw-free/rev/ab6ff73650ca]

http://bugs.dwscoalition.org/show_bug.cgi?id=3040

Also go into this path when we don't provide a specific filter get argument.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/S2/FriendsPage.pm
--------------------------------------------------------------------------------
diff -r 638a8e216b6f -r ab6ff73650ca cgi-bin/LJ/S2/FriendsPage.pm
--- a/cgi-bin/LJ/S2/FriendsPage.pm	Sat Oct 23 10:12:01 2010 +0800
+++ b/cgi-bin/LJ/S2/FriendsPage.pm	Sat Oct 23 11:06:00 2010 +0800
@@ -132,7 +132,8 @@ sub FriendsPage
             $p->{filter_name} = $opts->{securityfilter};
     } else {
     # but we can't just use a filter, we have to make sure the person is allowed to
-        if ( $get->{filter} && $get->{filter} ne "0" && $cf && ( $u->equals( $remote ) || $cf->public ) ) {
+        if ( ( ! $get->{filter} || $get->{filter} && $get->{filter} ne "0" )
+            && $cf && ( $u->equals( $remote ) || $cf->public ) ) {
             $filter = $cf;
 
         # if we couldn't use the group, then we can throw an error, but ONLY IF they specified
--------------------------------------------------------------------------------
kareila: (Default)

[personal profile] kareila 2010-10-23 03:25 am (UTC)(link)
Hmm, but won't that always be true? Shouldn't it be ! defined $get->{filter} instead, if the only criteria we want to reject is when filter is zero?