Update main.inc.php

This commit is contained in:
javieralapps4up 2021-09-21 00:53:10 +02:00 committed by GitHub
parent a8a8fd7cff
commit 278ae34b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1045,10 +1045,10 @@ if (!defined('NOLOGIN')) {
if (empty($user->rights->user->user_advance)) {
$user->rights->user->user_advance = new stdClass(); // To avoid warnings
}
if (empty($user->rights->user->user_advance)) {
if (empty($user->rights->user->self_advance)) {
$user->rights->user->self_advance = new stdClass(); // To avoid warnings
}
if (empty($user->rights->user->user_advance)) {
if (empty($user->rights->user->group_advance)) {
$user->rights->user->group_advance = new stdClass(); // To avoid warnings
}