From 247c894ed590363eb503bbd30ccbebb9736af8cf Mon Sep 17 00:00:00 2001 From: Leberwurscht Date: Sun, 15 Apr 2012 14:31:46 +0200 Subject: [PATCH] remove superfluous password popup in jappixmini --- jappixmini/jappixmini.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index 0e1cc5df..b2de48b4 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -263,8 +263,11 @@ function jappixmini_settings(&$a, &$s) { clear_password = document.getElementById('jappixmini-clear-password'); if (encrypt) { friendica_password = document.getElementById('jappixmini-friendica-password'); - jappixmini_addon_set_client_secret(friendica_password.value); - password.value = jappixmini_addon_encrypt_password(clear_password.value); + + if (friendica_password) { + jappixmini_addon_set_client_secret(friendica_password.value); + password.value = jappixmini_addon_encrypt_password(clear_password.value); + } } else { password.value = clear_password.value; -- 2.39.5