check for existence, not value of $arr['term']

This commit is contained in:
friendica 2012-07-16 01:56:32 -07:00
parent b79212dcc8
commit 0dc9c66b17

View File

@ -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']);
} }