Skip to content

Commit 3000a70

Browse files
committed
Cast type before ceil
1 parent 1c78d36 commit 3000a70

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/SimplePie/Item.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ public function get_enclosures()
18031803
}
18041804
if (!empty($content['attribs']['']['fileSize']))
18051805
{
1806-
$length = ceil($content['attribs']['']['fileSize']);
1806+
$length = ceil(intval($content['attribs']['']['fileSize']));
18071807
}
18081808
if (!empty($content['attribs']['']['medium']))
18091809
{
@@ -2425,7 +2425,7 @@ public function get_enclosures()
24252425
}
24262426
if (!empty($content['attribs']['']['fileSize']))
24272427
{
2428-
$length = ceil($content['attribs']['']['fileSize']);
2428+
$length = ceil(intval($content['attribs']['']['fileSize']));
24292429
}
24302430
if (!empty($content['attribs']['']['medium']))
24312431
{
@@ -2790,7 +2790,7 @@ public function get_enclosures()
27902790
}
27912791
if (!empty($link['attribs']['']['length']))
27922792
{
2793-
$length = ceil($link['attribs']['']['length']);
2793+
$length = ceil(intval($link['attribs']['']['length']));
27942794
}
27952795
if (!empty($link['attribs']['']['title']))
27962796
{
@@ -2833,7 +2833,7 @@ public function get_enclosures()
28332833
}
28342834
if (!empty($link['attribs']['']['length']))
28352835
{
2836-
$length = ceil($link['attribs']['']['length']);
2836+
$length = ceil(intval($link['attribs']['']['length']));
28372837
}
28382838

28392839
// Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
@@ -2868,7 +2868,7 @@ public function get_enclosures()
28682868
}
28692869
if (!empty($enclosure[0]['attribs']['']['length']))
28702870
{
2871-
$length = ceil($enclosure[0]['attribs']['']['length']);
2871+
$length = ceil(intval($enclosure[0]['attribs']['']['length']));
28722872
}
28732873

28742874
// Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor

0 commit comments

Comments
 (0)