From b74a1b0603f3f62481c629d7c5cf7894e4a2e0e0 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 2 Apr 2010 04:37:42 +0000 Subject: [PATCH] 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 --- wp-includes/class-simplepie.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-simplepie.php b/wp-includes/class-simplepie.php index 44066a39b5..98843f03d3 100644 --- a/wp-includes/class-simplepie.php +++ b/wp-includes/class-simplepie.php @@ -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);