Project

General

Profile

« Previous | Next » 

Revision bac37a8f

Added by Andreas Kohlbecker over 9 years ago

avoiding php Notices

View differences:

7.x/modules/cdm_dataportal/theme/cdm_dataportal.descriptions.theme
144 144
                switch ($element->class) {
145 145
                  case 'TextData':
146 146
                    // FIXME use theme_cdm_descriptionElementTextData()
147
                    $out_child_elements = str_replace("\n", "<br/>", $element->multilanguageText_L10n->text);
147
                    if(isset($element->multilanguageText_L10n->text)){
148
                      $out_child_elements = str_replace("\n", "<br/>", $element->multilanguageText_L10n->text);
149
                    }
148 150
                    $out_child_elements = str_replace($child->feature->titleCache, '<em>' . $child->feature->representation_L10n . '</em>', $out_child_elements);
149 151
                    break;
150 152
                  case 'CategoricalData':
......
677 679
   *        the name in source string are deduplicated
678 680
   *        !!!NOTE!!!!: this field will most probably be removed soon (TODO)
679 681
   *
680
   * 
682
   *
681 683
   */
682 684
  function handle_annotations_and_sources($element, $do_references_inline, $feature_block_settings, $element_text, $footnote_list_key_suggestion) {
683 685
    $annotations_and_sources = array(

Also available in: Unified diff