From 6d5f98072df1c2937723d2accd099f95a9d773a4 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 24 Mar 2021 09:21:58 +0000 Subject: php8: fix fatal errors (cherry picked from commit 1a15c775f8b7b5f19ba7ba68730f31a20da402b5) --- Zotlabs/Lib/Libsync.php | 3 +++ include/text.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php index 7e97e4c70..5455aa2ea 100644 --- a/Zotlabs/Lib/Libsync.php +++ b/Zotlabs/Lib/Libsync.php @@ -716,6 +716,9 @@ class Libsync { dbesc($sender['hash']) ); + if(!$xisting) + $xisting = []; + // See if a primary is specified $has_primary = false; diff --git a/include/text.php b/include/text.php index 85950c58b..b24b40d45 100644 --- a/include/text.php +++ b/include/text.php @@ -3739,6 +3739,9 @@ function get_forum_channels($uid) { intval($uid) ); + if(!$r) + $r = []; + for($x = 0; $x < count($r); $x ++) { if($x3) { foreach($x3 as $xx) { -- cgit v1.2.3