Fixing style errors.

This commit is contained in:
stickler-ci
2021-09-20 22:50:48 +00:00
parent 08504c4e16
commit a8a8fd7cff

View File

@@ -1042,17 +1042,16 @@ if (!defined('NOLOGIN')) {
//Required if advanced permissions are used with MAIN_USE_ADVANCED_PERMS
if (!empty($conf->global->MAIN_USE_ADVANCED_PERMS)) {
if (empty($user->rights->user->user_advance)) {
$user->rights->user->user_advance = new stdClass(); // To avoid warnings
}
if (empty($user->rights->user->user_advance)) {
$user->rights->user->self_advance = new stdClass(); // To avoid warnings
}
if (empty($user->rights->user->user_advance)) {
$user->rights->user->group_advance = new stdClass(); // To avoid warnings
}
if (empty($user->rights->user->user_advance)) {
$user->rights->user->user_advance = new stdClass(); // To avoid warnings
}
if (empty($user->rights->user->user_advance)) {
$user->rights->user->self_advance = new stdClass(); // To avoid warnings
}
if (empty($user->rights->user->user_advance)) {
$user->rights->user->group_advance = new stdClass(); // To avoid warnings
}
$user->rights->user->user_advance->readperms = 1;
$user->rights->user->user_advance->write = 1;
$user->rights->user->self_advance->readperms = 1;