careful lewis.. a variable was inside ''. :)
[squirrelmail.git] / functions / date.php
index 6cb4b68ccc9b74cc57bf5bff2c0e62247cc1908c..d814c51383cd18646f889d048255147738727d1a 100644 (file)
@@ -7,6 +7,7 @@
     **        <Tue,> 29 Jun 1999 09:52:11 -0500 (EDT)
     **  (as specified in RFC 822) -- "Tue" is optional
     **
+    **  $Id$
     **/
 
    $date_php = true;
          return getGMTSeconds(strtotime($string), $dateParts[4]);
       }
       $string = $dateParts[0] . " " . $dateParts[1] . " " . $dateParts[2] . " " . $dateParts[3] . " " . $dateParts[4];
-      return getGMTSeconds(strtotime($string), $dateParts[5]);
+         if (isset($dateParts[5]))
+       return getGMTSeconds(strtotime($string), $dateParts[5]);
+         else 
+               return getGMTSeconds(strtotime($string), "");
    }
 
    // I use this function for profiling. Should never be called in