]> git.mxchange.org Git - friendica-addons.git/commitdiff
remove superfluous password popup in jappixmini
authorLeberwurscht <leberwurscht@hoegners.de>
Sun, 15 Apr 2012 12:31:46 +0000 (14:31 +0200)
committerLeberwurscht <leberwurscht@hoegners.de>
Sun, 15 Apr 2012 12:31:46 +0000 (14:31 +0200)
jappixmini/jappixmini.php

index 0e1cc5df149066aed4593af125161b753e2a1c08..b2de48b45d9afec3b4d8c3b406fa70c0a9ac5ddc 100644 (file)
@@ -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;