Project

General

Profile

« Previous | Next » 

Revision e6ea8b45

Added by Andreas Kohlbecker over 12 years ago

avoid warninig

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.common.theme
49 49
function taxon_in_current_tree ($taxon_uuid) {
50 50
  $taxon_nodes = cdm_ws_get(CDM_WS_PORTAL_TAXON_TAXONNODES, $taxon_uuid);
51 51
  $taxon_in_current_tree = false;
52
  foreach($taxon_nodes as $node){
53
    if(get_taxonomictree_uuid_selected() == $node->classification->uuid){
54
      $taxon_in_current_tree = true;
55
      break;
52
  if(is_array($taxon_nodes)){
53
    foreach($taxon_nodes as $node){
54
      if(get_taxonomictree_uuid_selected() == $node->classification->uuid){
55
        $taxon_in_current_tree = true;
56
        break;
57
      }
56 58
    }
57 59
  }
58 60
  return $taxon_in_current_tree;
59 61
}
62

  
60 63
/**
61 64
 * TODO if getting fragment from request is possible remove $_REQUEST['highlite'] HACK
62 65
 * NOT WORKING since fragments are not available to the server

Also available in: Unified diff