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:
parent
6a1844f98e
commit
b74a1b0603
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue