|
@@ -4180,7 +4180,17 @@ class ilm_settings {
|
|
|
$param->ilm_type = $iassign_ilm->type;
|
|
|
$param->type = $iassign_ilm->type; // using as 'type' in ilm_handlers/html5.php
|
|
|
$param->url = $iassign_ilm->url;
|
|
|
- $param->description = $description->{current_language()};
|
|
|
+
|
|
|
+ // If the iLM does not present curret language => Notice: Undefined property: stdClass::$en_us in...
|
|
|
+ if (!isset($description->{current_language()})) {
|
|
|
+ if (isset($description->{"en_us"})) $param->description = $description->{"en_us"};
|
|
|
+ else
|
|
|
+ if (isset($description->{"pt_br"})) $param->description = $description->{"pt_br"};
|
|
|
+ else $param->description = ""; //TODO Providenciar uma mensagem!? Pegar alguma lingua existente?
|
|
|
+ }
|
|
|
+ else
|
|
|
+ $param->description = $description->{current_language()};
|
|
|
+
|
|
|
$param->description_lang = $iassign_ilm->description;
|
|
|
$param->extension = $iassign_ilm->extension;
|
|
|
$param->author = $iassign_ilm->author;
|