-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Time-based tracking fix for ASP #51
Conversation
Adding missing 'timestamp' column in 'player_unlock' table to db schema
Restore $time to "player_unlock" insert statement
Fix for TimeSpan issue in PHP 7.4.x
Hey @darth3pio, thanks much for the contribution 😄 Never really viewed player details in Private Stats Admin, i suppose the exception must be due to the syntax error in I guess this PR could be split into two, one with a fix for the syntax error, and one with a feature adding time-based tracking for player unlocks which adds a new column in the |
If you look at older commits from Wilson212, The feature was already there, it was one of the community members of the BF2Statistics forums that suggested removing $time from the selectunlock.php function as they couldn't figure out the issue they were looking at. It was two things a) Unlocks weren't unlocking and b) Viewing player pages in Private Stats Admin would throw an error when the time had to be formatted. It's tricky to separate the two as they both rely on each other at least if you want to run it on a newer PHP version. Viewing a player page (PlayerModel.php) still heavily queried $time so without commenting out everything it wouldn't actually fix that issue. I narrowed it down to
|
Thanks for the detailed explanation. Just spun up a development environment, i see the exception is:
which like you explained is because of a missing column in Don't see a point opening a separate PR just for fixing the deprecated syntax But overall, spinning up the stack from scratch on this PR, the player view now works properly in stats admin. Just one little change. Could you prefix the PR title with |
lgtm. Thanks for your contribution! 😄 |
These changes fix the error that gets thrown when attempting to view player details in Private Stats Admin.