diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 1a005a4cec..9474f9757c 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -406,7 +406,7 @@ function user_pass_ok($user_login,$user_pass) { } else { $userdata = $cache_userdata[$user_login]; } - return ($user_pass == $userdata['user_pass']); + return ($user_pass == $userdata->user_pass); } function get_currentuserinfo() { // a bit like get_userdata(), on steroids