diff options
author | Evan Prodromou <evan@status.net> | 2010-09-13 16:23:10 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-13 16:23:10 -0400 |
commit | d207f19d227c675329db3f339d865c9b45219af2 (patch) | |
tree | 625a676c55b754e151946f1f95aaaced9087e173 /lib/activitycontext.php | |
parent | 9771a7193ff14a23bcf4d34523441416c8ebfad7 (diff) |
accept null constructor for ActivityContext
Diffstat (limited to 'lib/activitycontext.php')
-rw-r--r-- | lib/activitycontext.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/activitycontext.php b/lib/activitycontext.php index 09a457924..f568c791f 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)) { |