From 0f09b4f636384dcca0961720adb44037a1136bc8 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 20 Nov 2021 23:47:03 +0000 Subject: [PATCH] Fixing (some) tests --- src/Module/BaseApi.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index e3e980286..c097a5826 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;