[dw-free] Checkbox for "Cut Inbox" settings always unchecked; does not reflect the actual
[commit: http://hg.dwscoalition.org/dw-free/rev/2214f48f4e8f]
http://bugs.dwscoalition.org/show_bug.cgi?id=2262
Correct check for existing value of $u->cut_inbox.
Patch by
afuna.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2262
Correct check for existing value of $u->cut_inbox.
Patch by
Files modified:
- cgi-bin/DW/Setting/CutInbox.pm
--------------------------------------------------------------------------------
diff -r faf4bf42a054 -r 2214f48f4e8f cgi-bin/DW/Setting/CutInbox.pm
--- a/cgi-bin/DW/Setting/CutInbox.pm Fri Jan 08 08:55:23 2010 -0600
+++ b/cgi-bin/DW/Setting/CutInbox.pm Fri Jan 08 10:21:11 2010 -0600
@@ -33,7 +33,7 @@ sub option {
my ( $class, $u, $errs, $args ) = @_;
my $key = $class->pkgkey;
- my $inbox_cut = $class->get_arg( $args, "cutinbox" ) || ( $u->cut_inbox || "" ) eq "Y";
+ my $inbox_cut = $class->get_arg( $args, "cutinbox" ) || $u->cut_inbox;
my $ret = LJ::html_check( {
name => "${key}cutinbox",
--------------------------------------------------------------------------------
