summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpwolanin2012-02-02 03:19:45 (GMT)
committer xjm2012-02-02 03:20:06 (GMT)
commit387b2d9430ea1477d4e013f045fea41f5c0f89f7 (patch)
treeb9c6bc6dc4e43f30da87a7a9308548b305f96736
parent28f259763c2ea61fda7847005df6264a9a480d00 (diff)
Issue #1358106 by pwolanin: Fix notices triggered by callback cleanup on uninstall.role_config
-rw-r--r--taxonomy_access.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/taxonomy_access.module b/taxonomy_access.module
index 1ce19e1..ddca41e 100644
--- a/taxonomy_access.module
+++ b/taxonomy_access.module
@@ -1768,7 +1768,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);
}