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:23:27 +0200 |
commit | ce89ecd54277fdd8113320ba463dfab6d504b00c (patch) | |
tree | 08c918750a5561bd211cc262fcf54394d9c12b08 /plugins/password/drivers | |
parent | c027ba7709a86c23038428de15ffed503e67c522 (diff) |
Fix various PHP code bugs found using static analysis (#1489086)
Diffstat (limited to 'plugins/password/drivers')
-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 8cd94c737..4d0ba1656 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)) { |