Project

General

Profile

Revision f41c2b5e

IDf41c2b5eca84d861d2d81f00486a3fc582b7ef9a
Parent 1f2c4dcf
Child c1639218

Added by Andreas Kohlbecker about 1 year ago

avoid accessing uninitialized variable

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.name.theme
175 175
        $derivedUnitFacadeInstance = cdm_ws_get(CDM_WS_DERIVEDUNIT_FACADE, $type_designation->typeSpecimen->uuid);
176 176
      }
177 177

  
178
      if (isset($derivedUnitFacadeInstance)) {
178
      if (isset($derivedUnitFacadeInstance->titleCache)) {
179 179
        $specimen_markup = $derivedUnitFacadeInstance->titleCache;
180 180
        if($link_to_specimen_page && isset($derivedUnitFacadeInstance->specimenLabel) && $derivedUnitFacadeInstance->specimenLabel){
181 181
          $specimen_markup = str_replace($derivedUnitFacadeInstance->specimenLabel, l($derivedUnitFacadeInstance->specimenLabel, path_to_specimen($type_designation->typeSpecimen->uuid)), $specimen_markup);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)