https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b7f574
)
Don't show the group filter where there is only one
author
Michael
<heluecht@pirati.ca>
Sat, 24 Nov 2018 12:10:30 +0000
(12:10 +0000)
committer
Michael
<heluecht@pirati.ca>
Sat, 24 Nov 2018 12:10:30 +0000
(12:10 +0000)
src/Model/Group.php
patch
|
blob
|
history
diff --git
a/src/Model/Group.php
b/src/Model/Group.php
index
b32b61e
..
1640cb8
100644
(file)
--- a/
src/Model/Group.php
+++ b/
src/Model/Group.php
@@
-400,6
+400,11
@@
class Group extends BaseObject
];
}
+ // Don't show the groups when there is only one
+ if (count($display_groups) <= 2) {
+ return '';
+ }
+
$tpl = Renderer::getMarkupTemplate('group_side.tpl');
$o = Renderer::replaceMacros($tpl, [
'$add' => L10n::t('add'),