X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Factivitycontext.php;h=ff3bc9411d53baeaa48b9b8d007769382bafef44;hb=f68d4e7d061f33cffbcf685949f3116237c23e55;hp=cc02a0195582ef010f4bfdae01050d5055fcb373;hpb=8c94ebf5375fe8ab9cb450525436396404d3fd33;p=quix0rs-gnu-social.git diff --git a/lib/activitycontext.php b/lib/activitycontext.php index cc02a01955..ff3bc9411d 100644 --- a/lib/activitycontext.php +++ b/lib/activitycontext.php @@ -54,8 +54,12 @@ class ActivityContext const MENTIONED = 'mentioned'; const CONVERSATION = 'ostatus:conversation'; - function __construct($element) + function __construct($element = null) { + if (empty($element)) { + return; + } + $replyToEl = ActivityUtils::child($element, self::INREPLYTO, self::THR); if (!empty($replyToEl)) {