diff options
author | Mario <mario@mariovavti.com> | 2022-09-11 14:58:40 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-11 14:58:40 +0000 |
commit | 480862d7143f291658b48e785eda2e61a438a74b (patch) | |
tree | 29661e5f26e4ca5b1e9aff1e8875485157a057d3 /Zotlabs/Lib/ThreadItem.php | |
parent | 990a3af2a7349e07c10224cf2a023d179ecfd6ca (diff) | |
download | volse-hubzilla-480862d7143f291658b48e785eda2e61a438a74b.tar.gz volse-hubzilla-480862d7143f291658b48e785eda2e61a438a74b.tar.bz2 volse-hubzilla-480862d7143f291658b48e785eda2e61a438a74b.zip |
php8: fix more warnings
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 20cbff4fc..0a7e40e0e 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -180,7 +180,7 @@ class ThreadItem { $dropping = false; } - + $drop = []; if($dropping) { $drop = array( 'dropping' => $dropping, @@ -309,6 +309,10 @@ class ThreadItem { if(($item['obj_type'] === ACTIVITY_OBJ_EVENT) && $conv->get_profile_owner() == local_channel()) $has_event = true; + $like = []; + $dislike = []; + $reply_to = []; + if($this->is_commentable() && $observer) { $like = array( t("I like this \x28toggle\x29"), t("like")); $dislike = array( t("I don't like this \x28toggle\x29"), t("dislike")); |