Make WordPress Core

Changeset 5284


Ignore:
Timestamp:
04/19/2007 02:49:19 AM (18 years ago)
Author:
rob1n
Message:

Cast substr()'s to int before passing through mktime() to prevent warning. Props josephscott. fixes #4166

File:
1 edited

Legend:

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

    r5269 r5284  
    99        return false;
    1010    }
    11     $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));
     11    $i = mktime(
     12        (int) substr( $m, 11, 2 ), (int) substr( $m, 14, 2 ), (int) substr( $m, 17, 2 ),
     13        (int) substr( $m, 5, 2 ), (int) substr( $m, 8, 2 ), (int) substr( $m, 0, 4 )
     14    );
    1215
    1316    if( 'U' == $dateformatstring )
Note: See TracChangeset for help on using the changeset viewer.