aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sessions.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 22:33:50 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 22:33:50 +0000
commit77537c157df1ca44a2e8f375c04c31580eb89954 (patch)
tree13e43d000686102505bb04a9de1113b8ea42d9d9 /engine/lib/sessions.php
parent24378b3ecc07eb568e383823967a0ae6378120d6 (diff)
downloadelgg-77537c157df1ca44a2e8f375c04c31580eb89954.tar.gz
elgg-77537c157df1ca44a2e8f375c04c31580eb89954.tar.bz2
testing for the existence of username in pam credentials before using
git-svn-id: http://code.elgg.org/elgg/trunk@7907 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sessions.php')
-rw-r--r--engine/lib/sessions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index 4cdc9bcce..eb47f4eb5 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -182,7 +182,7 @@ function authenticate($username, $password) {
*/
function pam_auth_userpass($credentials = NULL) {
- if (!is_array($credentials) && (!$credentials['username']) && (!$credentials['password'])) {
+ if (!is_array($credentials) || !isset($credentials['username']) || !isset($credentials['password'])) {
return false;
}