diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-06 12:23:27 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-06 12:25:46 +0200 |
commit | 187cf5e1cdee87fb1d26599f93202222bb7b8a4b (patch) | |
tree | 4a7234c9aa38f71607be3ca861610b870e56ef8d /plugins/password/drivers/pam.php | |
parent | 78c270c9f259c33b703cfb26b96b8dbb062db21e (diff) |
Fix various PHP code bugs found using static analysis (#1489086)
Conflicts:
plugins/enigma/enigma.php
plugins/enigma/lib/enigma_engine.php
Diffstat (limited to 'plugins/password/drivers/pam.php')
-rw-r--r-- | plugins/password/drivers/pam.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/password/drivers/pam.php b/plugins/password/drivers/pam.php index 20524d9f1..15a802c74 100644 --- a/plugins/password/drivers/pam.php +++ b/plugins/password/drivers/pam.php @@ -11,7 +11,8 @@ class rcube_pam_password { function save($currpass, $newpass) { - $user = $_SESSION['username']; + $user = $_SESSION['username']; + $error = ''; if (extension_loaded('pam') || extension_loaded('pam_auth')) { if (pam_auth($user, $currpass, $error, false)) { |