diff --git a/force_password_change.module b/force_password_change.module index 7319a8c..f347d11 100644 --- a/force_password_change.module +++ b/force_password_change.module @@ -180,7 +180,7 @@ function force_password_change_check() ->fetchField(); // Test to see if their password has expired - if($expiry && ($user_data->last_password_change != '' && (REQUEST_TIME - $expiry) > $user_data->last_password_change) || ($user_data->last_password_change == '' && (REQUEST_TIME - $expiry) > $user_data->created)) + if($expiry && (($user_data->last_password_change != '' && (REQUEST_TIME - $expiry) > $user_data->last_password_change) || ($user_data->last_password_change == '' && (REQUEST_TIME - $expiry) > $user_data->created))) { // Their password has expired, so their user account is flagged // and the expiration time period is returned, which will trigger the redirect