summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpwolanin2012-02-02 03:19:45 (GMT)
committer xjm2012-02-02 03:19:45 (GMT)
commit827f79dcdde64db1e7879e29ef28e688b17b8234 (patch)
tree3464ba862f2cb90a4a7b243e6c62fad5f2dc902f
parent96968848eec24783e6b90bf6ea040a98f564fa89 (diff)
Issue #1358106 by pwolanin: Fix notices triggered by callback cleanup on uninstall.
-rw-r--r--taxonomy_access.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/taxonomy_access.module b/taxonomy_access.module
index 4295759..64b48ee 100644
--- a/taxonomy_access.module
+++ b/taxonomy_access.module
@@ -1738,7 +1738,7 @@ function _taxonomy_access_grant_help_table() {
function taxonomy_access_disable() {
foreach (field_read_fields() as $field_name => $field) {
if ($field['type'] == 'taxonomy_term_reference') {
- if ($field['settings']['options_list_callback'] == '_taxonomy_access_term_options') {
+ if (!empty($field['settings']['options_list_callback']) && $field['settings']['options_list_callback'] == '_taxonomy_access_term_options') {
$field['settings']['options_list_callback'] = '';
field_update_field($field);
}