Make WordPress Core

Changeset 13935


Ignore:
Timestamp:
04/02/2010 04:37:42 AM (16 years ago)
Author:
nacin
Message:

Fix int cast usage in simplepie. see #12334, props rlerdorf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-simplepie.php

    r12705 r13935  
    40684068                                        if (sizeof($temp) > 0)
    40694069                                        {
    4070                                                 (int) $seconds = array_pop($temp);
     4070                                                $seconds = (int) array_pop($temp);
    40714071                                        }
    40724072                                        if (sizeof($temp) > 0)
    40734073                                        {
    4074                                                 (int) $minutes = array_pop($temp);
     4074                                                $minutes = (int) array_pop($temp);
    40754075                                                $seconds += $minutes * 60;
    40764076                                        }
    40774077                                        if (sizeof($temp) > 0)
    40784078                                        {
    4079                                                 (int) $hours = array_pop($temp);
     4079                                                $hours = (int) array_pop($temp);
    40804080                                                $seconds += $hours * 3600;
    40814081                                        }
Note: See TracChangeset for help on using the changeset viewer.