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:
parent
fb7ea4ea42
commit
1179f37584
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user