aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Permcats.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-20 13:16:03 +0000
committerMario <mario@mariovavti.com>2022-10-20 13:16:03 +0000
commitbf434818d7cfac6bf29482d4bb07fc567de2fc90 (patch)
treefc50a3cafce38134d758767caec1ffea8da8fdcf /Zotlabs/Widget/Permcats.php
parent03aeb888322e792ccb17593761f1f93ad2906c7e (diff)
downloadvolse-hubzilla-bf434818d7cfac6bf29482d4bb07fc567de2fc90.tar.gz
volse-hubzilla-bf434818d7cfac6bf29482d4bb07fc567de2fc90.tar.bz2
volse-hubzilla-bf434818d7cfac6bf29482d4bb07fc567de2fc90.zip
fix php warnings
Diffstat (limited to 'Zotlabs/Widget/Permcats.php')
-rw-r--r--Zotlabs/Widget/Permcats.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Widget/Permcats.php b/Zotlabs/Widget/Permcats.php
index 9226b3c71..9bda5b8f1 100644
--- a/Zotlabs/Widget/Permcats.php
+++ b/Zotlabs/Widget/Permcats.php
@@ -24,6 +24,7 @@ class Permcats {
$roles = [];
$active_role = '';
+ $members = [];
foreach($pcatlist as $pc) {
if (!$active_role) {
@@ -76,8 +77,6 @@ class Permcats {
dbesc($active_role)
);
- $members = [];
-
foreach ($r as $rr) {
$members[] = [
'name' => $rr['xchan_name'],
@@ -89,7 +88,7 @@ class Permcats {
}
$tpl = get_markup_template("permcats_widget.tpl");
- $o .= replace_macros($tpl, [
+ $o = replace_macros($tpl, [
'$roles_label' => t('Contact roles'),
'$members_label' => t('Role members'),
'$roles' => $roles,