mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
ignore memberSince for non-members
This commit is contained in:
parent
873e799ff8
commit
eff60e7b67
@ -34,7 +34,7 @@ class MyMembership extends Widget
|
||||
|
||||
return $this->render('myMembership', [
|
||||
'role' => $this->space->getUserGroup(),
|
||||
'memberSince' => empty($membership) ? '-' : empty($membership->created_at) ? '' : TimeAgo::widget(['timestamp' => $membership->created_at])
|
||||
'memberSince' => empty($membership) || empty($membership->created_at) ? null : TimeAgo::widget(['timestamp' => $membership->created_at])
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user