Remove unnecessary fields from bulk get, add explicit casting back to podcast item array for testing

This commit is contained in:
Duncan Sommerville 2015-09-22 20:24:53 -04:00
parent 55d5fc62a2
commit 827a83392f
2 changed files with 9 additions and 4 deletions

View file

@ -73,6 +73,10 @@ class Podcast extends BasePodcast
$podcastArray["episodes"] = array();
foreach ($rss->item as $item) {
// Same as above, we need to explicitly cast the SimpleXMLElement 'array' into an actual array
foreach($item as $k => $v) {
$item[$k] = (string)$v;
}
array_push($podcastArray["episodes"], $item);
}
return $podcastArray;
@ -109,6 +113,10 @@ class Podcast extends BasePodcast
$podcastArray["episodes"] = array();
foreach ($rss->item as $item) {
// Same as above, we need to explicitly cast the SimpleXMLElement 'array' into an actual array
foreach($item as $k => $v) {
$item[$k] = (string)$v;
}
array_push($podcastArray["episodes"], $item);
}