check for existence, not value of $arr['term']
This commit is contained in:
parent
b79212dcc8
commit
0dc9c66b17
@ -969,7 +969,7 @@ function item_store($arr,$force_parent = false) {
|
|||||||
// pull out all the taxonomy stuff for separate storage
|
// pull out all the taxonomy stuff for separate storage
|
||||||
|
|
||||||
$terms = null;
|
$terms = null;
|
||||||
if($arr['term']) {
|
if(x($arr,'term')) {
|
||||||
$terms = $arr['term'];
|
$terms = $arr['term'];
|
||||||
unset($arr['term']);
|
unset($arr['term']);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user