Revision 90597e37
Added by Andreas Kohlbecker almost 11 years ago
7.x/modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
2046 | 2046 |
* @return unknown |
2047 | 2047 |
*/ |
2048 | 2048 |
function cdm_annotations_as_footnotekeys($cdmBase_list, $footnote_list_key = NULL) { |
2049 |
// Comment @WA: undefined variable. |
|
2050 |
/* |
|
2051 |
static $annotations_types_filter; |
|
2049 |
|
|
2050 |
static $annotations_types_filter = null; |
|
2052 | 2051 |
if(!$annotations_types_filter) { |
2053 |
unserialize(ANNOTATIONS_TYPES_AS_FOOTNOTES_DEFAULT); |
|
2052 |
$annotations_types_filter = unserialize(ANNOTATIONS_TYPES_AS_FOOTNOTES_DEFAULT);
|
|
2054 | 2053 |
} |
2055 |
*/ |
|
2056 |
unserialize(ANNOTATIONS_TYPES_AS_FOOTNOTES_DEFAULT); |
|
2057 | 2054 |
|
2058 | 2055 |
$footNoteKeys = array(); |
2059 | 2056 |
|
... | ... | |
2075 | 2072 |
} |
2076 | 2073 |
|
2077 | 2074 |
// Adding the footnotes keys. |
2078 |
$annotations_types_filter = unserialize(ANNOTATIONS_TYPES_AS_FOOTNOTES_DEFAULT); |
|
2079 | 2075 |
foreach ($cdmBase_array as $cdmBase_element) { |
2080 | 2076 |
$annotations = cdm_ws_getAnnotationsFor($cdmBase_element, variable_get('annotations_types_as_footnotes', $annotations_types_filter)); |
2081 | 2077 |
if (is_array($annotations)) { |
Also available in: Unified diff
fixing #3013 (undefined variable )