diff options
-rw-r--r-- | Zotlabs/Lib/Activity.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index d883eac67..5297c1f95 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -20,7 +20,7 @@ class Activity { if(is_array($x)) { - if(array_key_exists('asld',$x)) { + if(array_key_exists('asld',$x) && is_array($x['asld'])) { return $x['asld']; } @@ -165,6 +165,7 @@ class Activity { $r = q("select * from item where mid = '%s' limit 1", dbesc($x['id']) ); + if($r) { xchan_query($r,true); $r = fetch_post_tags($r,true); |