From: Leberwurscht Date: Sun, 15 Apr 2012 12:31:46 +0000 (+0200) Subject: remove superfluous password popup in jappixmini X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=247c894ed590363eb503bbd30ccbebb9736af8cf;p=friendica-addons.git remove superfluous password popup in jappixmini --- 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;