Commit 15bfaa99 authored by Mike Keran's avatar Mike Keran
Browse files

Issue #2507061 by DrCord, Begun: Undefined index vid in...

Issue #2507061 by DrCord, Begun: Undefined index vid in better_exposed_filters_exposed_form_plugin.inc
parent bf5eaf51
......@@ -1120,9 +1120,8 @@ dateFormat: "dd-mm-yy"
// Collect replacement data.
$data = array();
$available = $options['more_options']['tokens']['available'];
if (in_array('vocabulary', $available)) {
$vocabs = taxonomy_get_vocabularies();
$data['vocabulary'] = $vocabs[$filters[$label]->options['vid']];
if (in_array('vocabulary', $available) && isset($filters[$label]->definition['vocabulary'])) {
$data['vocabulary'] = taxonomy_vocabulary_machine_name_load($filters[$label]->definition['vocabulary']);
}
/* Others? */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment