trying to fix PHP Fatal error: Cannot use [] for reading
This commit is contained in:
parent
d1b069ad8b
commit
c4ab89f177
@ -292,7 +292,7 @@ function _materio_admin_batch_fixterm_ref_op($nid, $src_tid, $target_field){
|
|||||||
}
|
}
|
||||||
if(!in_array($src_tid, $flat_items)){
|
if(!in_array($src_tid, $flat_items)){
|
||||||
// $items[] = array('tid'=>$src_tid);
|
// $items[] = array('tid'=>$src_tid);
|
||||||
$node->$target_field[LANGUAGE_NONE][] = array('tid'=>$src_tid);
|
$node->{$target_field}[LANGUAGE_NONE][] = array('tid'=>$src_tid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// $items = array(LANGUAGE_NONE => array());
|
// $items = array(LANGUAGE_NONE => array());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user