simplify and correct only_increment checkbox
[BackupPC.git] / lib / BackupPC / CGI / Browse.pm
index 33c525d..44d1777 100644 (file)
@@ -303,8 +303,7 @@ EOF
     }
 
        # XXX ASA
-       my $checked = $In{only_increment} ? ' checked' : '';
-       $filledBackup .= "<li><input type=checkbox name=only_increment$checked> show only this increment";
+       $filledBackup .= "<li><input type=checkbox name=only_increment value=checked $In{only_increment}> show only this increment";
 
     $dir   = decode_utf8($dir);
     $share = decode_utf8($share);