From: cash Date: Thu, 14 Apr 2011 00:42:02 +0000 (+0000) Subject: preventing warnings with the user password authorization pam (hellekin) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e809367625ed4f9d05b5711791392c60d8fac69e;p=lorea%2Felgg.git preventing warnings with the user password authorization pam (hellekin) git-svn-id: http://code.elgg.org/elgg/trunk@8993 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index 5d45cc73d..ae42956a9 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -155,9 +155,9 @@ function elgg_authenticate($username, $password) { * @return bool * @throws LoginException */ -function pam_auth_userpass($credentials = NULL) { +function pam_auth_userpass(array $credentials = array()) { - if (!is_array($credentials) || !isset($credentials['username']) || !isset($credentials['password'])) { + if (!isset($credentials['username']) || !isset($credentials['password'])) { return false; }