notice php bug fixe

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy 2012-11-30 11:47:33 +01:00
parent 4b1685af04
commit 1cd7c773a5

View File

@ -677,6 +677,7 @@ function _term_reference_tree_widget_validate(&$element, &$form_state) {
return $element; return $element;
}else{ }else{
# if the field was not in the form # if the field was not in the form
$values = array();
foreach ($element['#default_value'] as $tid) { foreach ($element['#default_value'] as $tid) {
$values[] = (array) taxonomy_term_load($tid); $values[] = (array) taxonomy_term_load($tid);
} }