diff options
author | Thomas Willingham <founder@kakste.com> | 2013-01-03 09:17:11 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-01-03 09:17:11 +0000 |
commit | b1a02cf450c92e88f3375d15b153d0046bc5c724 (patch) | |
tree | a3c4db0f0dd1f9b0bde31ec1f78117d9acb19907 /include/items.php | |
parent | 577236c372b4eaa1e93d60d7bedaecea8ef8c97f (diff) | |
parent | 1e7a5560f5a5887641d120e77f0f9993bf3b58b9 (diff) | |
download | volse-hubzilla-b1a02cf450c92e88f3375d15b153d0046bc5c724.tar.gz volse-hubzilla-b1a02cf450c92e88f3375d15b153d0046bc5c724.tar.bz2 volse-hubzilla-b1a02cf450c92e88f3375d15b153d0046bc5c724.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/items.php b/include/items.php index 3cfdd59da..432f26804 100755 --- a/include/items.php +++ b/include/items.php @@ -4200,13 +4200,15 @@ function fetch_post_tags($items) { $tag_finder = array(); if($items) { foreach($items as $item) { - if(array_key_exists('item_id',$item)) { - if(! in_array($item['item_id'],$tag_finder)) - $tag_finder[] = $item['item_id']; - } - else { - if(! in_array($item['id'],$tag_finder)) - $tag_finder[] = $item['id']; + if(is_array($item)) { + if(array_key_exists('item_id',$item)) { + if(! in_array($item['item_id'],$tag_finder)) + $tag_finder[] = $item['item_id']; + } + else { + if(! in_array($item['id'],$tag_finder)) + $tag_finder[] = $item['id']; + } } } } @@ -4222,7 +4224,7 @@ function fetch_post_tags($items) { for($x = 0; $x < count($items); $x ++) { - if(count($tags)) { + if($tags) { foreach($tags as $t) { if(array_key_exists('item_id',$items[$x])) { if($t['oid'] == $items[$x]['item_id']) { |