Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bug: Array Data Type for s2member_paid_registration_times #989

Closed
jaswrks opened this issue Sep 15, 2016 · 4 comments
Closed

Bug: Array Data Type for s2member_paid_registration_times #989

jaswrks opened this issue Sep 15, 2016 · 4 comments
Labels

Comments

@jaswrks
Copy link
Contributor

jaswrks commented Sep 15, 2016

This line should be changed to:

$paid_registration_times = ($user) ? (array) get_user_option('s2member_paid_registration_times', $user->ID) : array();
@jaswrks jaswrks added the bug label Sep 15, 2016
@jaswrks
Copy link
Contributor Author

jaswrks commented Sep 15, 2016

i.e., to force an array in case of mild database corruption.

jaswrks pushed a commit that referenced this issue Sep 15, 2016
jaswrks pushed a commit that referenced this issue Sep 15, 2016
Enforce data types for constants. See: #989
@jaswrks
Copy link
Contributor Author

jaswrks commented Sep 15, 2016

Next Release Changelog:

  • Enforce data types when determining PHP constants. See this GitHub issue if you'd like further details.

@jaswrks jaswrks closed this as completed Sep 15, 2016
@jaswrks
Copy link
Contributor Author

jaswrks commented Sep 15, 2016

Short-Term Fix

Download this updated file and then upload it via FTP, to your site, allowing it to replace your existing copy of s2member/includes/classes/constants.inc.php

@xxxreganxxx
Copy link

You guys are awesome!!!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants