Skip to content

Commit

Permalink
MDL-35101 Repository: Public Flickr fails when the picture has no lic…
Browse files Browse the repository at this point in the history
…ense
  • Loading branch information
Frederic Massart committed Sep 3, 2012
1 parent 569f1ad commit 87294fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repository/flickr_public/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,14 @@ public function logout() {

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];
}
Expand Down

0 comments on commit 87294fa

Please sign in to comment.