diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-12-26 12:59:33 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-12-26 12:59:33 +0000 |
| commit | 5beef288184938af60e93569b1e616b30e861fa9 (patch) | |
| tree | 180cabdf0b2b5a3ac084555925b3c50c391d048e /wp-inst/wp-includes/functions.php | |
| parent | 8fc094b4471e50f335abaed758a5f3eab06e5ce4 (diff) | |
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@487 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/functions.php')
| -rw-r--r-- | wp-inst/wp-includes/functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wp-inst/wp-includes/functions.php b/wp-inst/wp-includes/functions.php index 74b8c56..de64053 100644 --- a/wp-inst/wp-includes/functions.php +++ b/wp-inst/wp-includes/functions.php @@ -22,6 +22,10 @@ function mysql2date($dateformatstring, $mysqlstring, $translate = true) { return false; } $i = mktime(substr($m,11,2),substr($m,14,2),substr($m,17,2),substr($m,5,2),substr($m,8,2),substr($m,0,4)); + + if ( -1 == $i || false == $i ) + $i = 0; + if ( !empty($month) && !empty($weekday) && $translate ) { $datemonth = $month[date('m', $i)]; $datemonth_abbrev = $month_abbrev[$datemonth]; |
