Permalink
Browse files

Merge branch 'MDL-28510_21_STABLE' of git://github.com/marxjohnson/mo…

…odle into MOODLE_21_STABLE
  • Loading branch information...
2 parents c4eea3e + a10ec7f commit 09e7c66714851e9b35ae00bc5fb29dc83aabb75b @samhemelryk samhemelryk committed Aug 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/youtube/lib.php
View
2 repository/youtube/lib.php
@@ -57,7 +57,7 @@ private function _get_collection($keyword, $start, $max, $sort) {
foreach ($xml->entry as $entry) {
$media = $entry->children('http://search.yahoo.com/mrss/');
$title = $media->group->title;
- $attrs = $media->group->thumbnail->attributes();
+ $attrs = $media->group->thumbnail[2]->attributes();
$thumbnail = $attrs['url'];
$arr = explode('/', $entry->id);
$id = $arr[count($arr)-1];

0 comments on commit 09e7c66

Please sign in to comment.