Raised This Month: $71 Target: $400
 17% 

Fix for Daily Player Stats not working in PHP7


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mlov420
Senior Member
Join Date: May 2013
Old 12-09-2017 , 09:20   Fix for Daily Player Stats not working in PHP7
Reply With Quote #1

I have been having a problem for a while where Daily Player stats would not work. Only 'last month', 'last week', and full stats would work. It was an easy fix so I figured I should share it here for anyone else having the issue:

Go to install.dir/pages/players.php. On line 340 you should see this:

Code:
$minEvent = split("-", $dates[$rank_type-1]['eventTime']);
Change that line to this:

Code:
$minEvent = explode("-", $dates[$rank_type-1]['eventTime']);
Basically swap out 'split' for 'explode' as 'split' is no longer a function in PHP7. Save your file and that's it, daily player stats from the drop down menu should work as intended.
mlov420 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:28.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode