WordPress.org

Make WordPress Core

Changeset 9618


Ignore:
Timestamp:
11/11/08 20:40:36 (7 years ago)
Author:
ryan
Message:

Fix warnings. Props nbachiyski. fixes #8153

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r9616 r9618  
    113113 * @return string The date, translated if locale specifies it. 
    114114 */ 
    115 function date_i18n( $dateformatstring, $unixtimestamp, $gmt = false ) { 
     115function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) { 
    116116    global $wp_locale; 
    117117    $i = $unixtimestamp; 
    118118    // Sanity check for PHP 5.1.0- 
    119     if ( intval($i) < 1 ) 
     119    if ( false === $i || intval($i) < 0 ) 
    120120        $i = time(); 
    121121 
Note: See TracChangeset for help on using the changeset viewer.