From: Michael Date: Sat, 20 Nov 2021 23:47:03 +0000 (+0000) Subject: Fixing (some) tests X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f09b4f636384dcca0961720adb44037a1136bc8;p=friendica.git Fixing (some) tests --- diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index e3e980286a..c097a58269 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -324,6 +324,10 @@ class BaseApi extends BaseModule */ public static function addRSSValues(array $arr, int $cid) { + if (empty($cid)) { + return $arr; + } + $user_info = DI::twitterUser()->createFromContactId($cid)->toArray(); $arr['$user'] = $user_info;