Skip to content
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

Minor updates #125

Merged
merged 5 commits into from Jan 17, 2017
Merged

Minor updates #125

merged 5 commits into from Jan 17, 2017

Conversation

iMattPro
Copy link
Contributor

No description provided.

@@ -157,6 +157,9 @@ protected function days_to_timestamp($value)
*/
protected function timestamp_to_days($value)
{
return (int) round((time() - $value) / 86400);
$now = new \DateTime();
$time = new \DateTime("@{$value}");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure $value is not an empty string maybe? Otherwise this might cause issues.

Copy link
Contributor Author

@iMattPro iMattPro Jan 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. I tested these and they seems to be more fool proof.

@iMattPro
Copy link
Contributor Author

Updated

@marc1706 marc1706 merged commit b6cacb2 into phpbb-extensions:3.1.x Jan 17, 2017
@iMattPro iMattPro deleted the updates branch January 17, 2017 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants