Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…odle into MOODLE_21_STABLE
  • Loading branch information...
commit 09e7c66714851e9b35ae00bc5fb29dc83aabb75b 2 parents c4eea3e + a10ec7f
Sam Hemelryk samhemelryk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  repository/youtube/lib.php
2  repository/youtube/lib.php
View
@@ -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];
Please sign in to comment.
Something went wrong with that request. Please try again.