Login
Register
All class groups
Latest entries
Top 10 charts
Blog
Forums
Shop
Help
Login
Register
Doesnt work with PHP 5 (includes Fix)
Search
All class groups
Latest entries
Top 10 charts
Blog
Forums
Shop
Help
Recommend
this page to a friend!
Array Multi Sort
>
All threads
>
Doesnt work with PHP 5 (includes Fix)
>
(Un) Subscribe thread alerts
Subject:
Doesnt work with PHP 5 (includes Fix)
Summary:
PHP5
Messages:
2
Author:
DCB
Date:
2006-12-08 12:32:30
Update:
2006-12-08 15:52:50
1. Doesnt work with PHP 5 (includes Fix)
Reply
Report abuse
DCB - 2006-12-08 12:32:30
This function doesn't work with PHP5 to fix it change the line
if(($a_dt == -1) || ($b_dt == -1)))
To
if(($a_dt == -1) || ($b_dt == -1) || ($a_dt == false) || ($b_dt == false))
This is because previous to PHP 5.1.0, the strtotime function would return -1 on failure instead of FALSE so the above makes it work with php4 and php5.
2. Re: Doesnt work with PHP 5 (includes Fix)
Reply
Report abuse
Alexandar Minkovsky - 2006-12-08 15:52:50 -
In reply to
message 1
from DCB
Thanks for Your suggestion.
I've applied the change You submitted.
Best regards,
Alex
About us
Advertise on this site
Site map
Newsletter
Statistics
Site tips
Privacy policy
Contact
Copyright (c)
Icontem
1999-2025
For more information send a message to
info at phpclasses dot org
.
image/svg+xml
image/svg+xml
Contact us using Messenger