MDL-35101 Repository: Public Flickr fails when the picture has no license

This commit is contained in:
Frederic Massart
2012-09-03 14:20:45 +08:00
parent 569f1ad63b
commit 87294fa346
+2 -1
View File
@@ -213,13 +213,14 @@ class repository_flickr_public extends repository {
public function license4moodle ($license_id) {
$license = array(
'0' => 'allrightsreserved',
'1' => 'cc-nc-sa',
'2' => 'cc-nc',
'3' => 'cc-nc-nd',
'4' => 'cc',
'5' => 'cc-sa',
'6' => 'cc-nd',
'7' => 'allrightsreserved'
'7' => 'other'
);
return $license[$license_id];
}