aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-02 16:28:47 -0800
committerfriendica <info@friendica.com>2013-01-02 16:28:47 -0800
commit32a97d5065efbcc6897ef7598343c6973114fff4 (patch)
tree9d37176d2d9f2bdf7bc26c4db3a35e5b9fc1a82c /include/items.php
parent4108598133eae97e7c8a0b8e13ead4856f423cff (diff)
downloadvolse-hubzilla-32a97d5065efbcc6897ef7598343c6973114fff4.tar.gz
volse-hubzilla-32a97d5065efbcc6897ef7598343c6973114fff4.tar.bz2
volse-hubzilla-32a97d5065efbcc6897ef7598343c6973114fff4.zip
zome issues registering new hubs
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php18
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']) {