projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Weird locales seem to mess with uppercase i, and php seems to like to
[squirrelmail.git]
/
functions
/
date.php
diff --git
a/functions/date.php
b/functions/date.php
index 4b2fa8605ff3fe7c8634ab58d89289b600ecba34..24cb1deee28f6beafe2606f5770b4794d1c5dda3 100644
(file)
--- a/
functions/date.php
+++ b/
functions/date.php
@@
-261,6
+261,9
@@
function getTimeStamp($dateParts) {
* array is an integer or not.
* Since the day of week is optional, this check is needed.
*/
+ if (count($dateParts) <2) {
+ return 0;
+ }
/* remove day of week */
if (!is_numeric(trim($dateParts[0]))) {