micro debug

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy 2012-02-10 19:53:00 +01:00
parent 6ab6fc916b
commit 9d10e145b4

View File

@ -600,7 +600,7 @@ function _tode_populate_terms_node_delete(&$terms, $tode_field){
foreach ($tode_field as $language) { foreach ($tode_field as $language) {
foreach ($language as $term) { foreach ($language as $term) {
$term = taxonomy_term_load($term['tid']); $term = taxonomy_term_load($term['tid']);
if(!in_array($term->tid, $terms['tids'])){ if(isset($term->tid) && !in_array($term->tid, $terms['tids'])){
$terms['names'][] = $term->name; $terms['names'][] = $term->name;
$terms['tids'][] = $term->tid; $terms['tids'][] = $term->tid;
} }
@ -609,6 +609,7 @@ function _tode_populate_terms_node_delete(&$terms, $tode_field){
} }
function _tode_node_delete_prepare_form(&$form, $terms){ function _tode_node_delete_prepare_form(&$form, $terms){
if(count($terms)){ if(count($terms)){
/* /*
TODO add here a checkbox to select terms to delete TODO add here a checkbox to select terms to delete