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

git-svn-id: https://develop.svn.wordpress.org/trunk@13935 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-04-02 04:37:42 +00:00
parent fb7ea4ea42
commit 1179f37584

View File

@ -4067,16 +4067,16 @@ class SimplePie_Item
$temp = explode(':', $this->sanitize($duration_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT));
if (sizeof($temp) > 0)
{
(int) $seconds = array_pop($temp);
$seconds = (int) array_pop($temp);
}
if (sizeof($temp) > 0)
{
(int) $minutes = array_pop($temp);
$minutes = (int) array_pop($temp);
$seconds += $minutes * 60;
}
if (sizeof($temp) > 0)
{
(int) $hours = array_pop($temp);
$hours = (int) array_pop($temp);
$seconds += $hours * 3600;
}
unset($temp);