Skip to content

Commit

Permalink
Remakes preference save call (untested)
Browse files Browse the repository at this point in the history
Hopefully solves niklasfemerstrand#80/niklasfemerstrand#87

By bogde
  • Loading branch information
Niklas Femerstrand committed Jul 22, 2013
1 parent b30e415 commit 8c31148
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rc_openpgpjs.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,8 @@ function preferences_list($p)
function preferences_save($p)
{
if ($p['section'] == 'compose') {
$p['prefs'] = array(
'encrypt' => get_input_value('_encrypt', RCUBE_INPUT_POST) ? true : false,
'sign' => get_input_value('_sign', RCUBE_INPUT_POST) ? true : false,
);
$p['prefs']['encrypt'] = get_input_value('_encrypt', RCUBE_INPUT_POST) ? true : false;
$p['prefs']['sign'] = get_input_value('_sign', RCUBE_INPUT_POST) ? true : false;
}

return $p;
Expand Down

0 comments on commit 8c31148

Please sign in to comment.