Login   Register  
PHP Classes
elePHPant
Icontem

Doesnt work with PHP 5 (includes Fix)

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      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  
Picture of DCB
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  
Picture of Alexandar Minkovsky
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