From 56bc3bcdcee41d5ca6920c878aa8576dc673d039 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 14 Jan 2015 19:27:55 -0800 Subject: provide correct permissions role default for old-timers that didn't have any role configured. --- mod/settings.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/settings.php') diff --git a/mod/settings.php b/mod/settings.php index 59ce98a2a..902213446 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -1004,7 +1004,10 @@ function settings_content(&$a) { $evdays = 3; $permissions_role = get_pconfig(local_user(),'system','permissions_role'); - $permissions_set = (($permissions_role && $permissions_role != 'custom') ? true : false); + if(! $permissions_role) + $permissions_role = 'custom'; + + $permissions_set = (($permissions_role != 'custom') ? true : false); $vnotify = get_pconfig(local_user(),'system','vnotify'); $always_show_in_notices = get_pconfig(local_user(),'system','always_show_in_notices'); if($vnotify === false) -- cgit v1.2.3