aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Widget/Newmember.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Newmember.php b/Zotlabs/Widget/Newmember.php
index cdb70e23d..acc151944 100644
--- a/Zotlabs/Widget/Newmember.php
+++ b/Zotlabs/Widget/Newmember.php
@@ -9,16 +9,17 @@ class Newmember {
if(! local_channel())
return EMPTY_STR;
+ if(get_pconfig(local_channel(), 'system', 'disable_newmemberwidget'))
+ return EMPTY_STR;
+
$c = \App::get_channel();
if(! $c)
return EMPTY_STR;
-
$a = \App::get_account();
if(! $a)
return EMPTY_STR;
-
if(datetime_convert('UTC','UTC',$a['account_created']) < datetime_convert('UTC','UTC', 'now - 60 days'))
return EMPTY_STR;