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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-04-02 04:37:42 +00:00
parent 6a1844f98e
commit b74a1b0603
1 changed files with 3 additions and 3 deletions

View File

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