]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
preventing warnings with the user password authorization pam (hellekin)
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 14 Apr 2011 00:42:02 +0000 (00:42 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 14 Apr 2011 00:42:02 +0000 (00:42 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8993 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/sessions.php

index 5d45cc73d6d5f5f81779a9beabbc33189835a151..ae42956a97a842405977d87d65e46bf0c1fc8fd8 100644 (file)
@@ -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;
        }