This commit is contained in:
Alexey Shpakovsky 2021-06-04 11:04:43 +02:00
parent a0d2335088
commit 60f08be5b1
No known key found for this signature in database
GPG key ID: 5797A726A2A4230A

View file

@ -184,7 +184,7 @@ function abook_carddav_optpage() {
function plugin_abook_carddav_password_save($option){
global $username, $data_dir;
$opt = getPref($data_dir, $username, 'plugin_abook_carddav_password_opt', '2');
abook_set_password($option->$new_value, $opt);
abook_set_password($option->new_value, $opt);
}
function plugin_abook_carddav_password_opt_save($option){
@ -195,7 +195,7 @@ function plugin_abook_carddav_password_opt_save($option){
$abook_password = abook_get_password($abook_password_text, $abook_password_opt);
save_option($option);
// reencrypt it
abook_set_password($abook_password, $option->$new_value);
abook_set_password($abook_password, $option->new_value);
}