Remove unnecessary fields from bulk get, add explicit casting back to podcast item array for testing
This commit is contained in:
parent
55d5fc62a2
commit
827a83392f
2 changed files with 9 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue