From 278ae34b5f38317959906d24f8432abb09ca1f54 Mon Sep 17 00:00:00 2001 From: javieralapps4up Date: Tue, 21 Sep 2021 00:53:10 +0200 Subject: [PATCH] Update main.inc.php --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 952b1eb8547..336e067c222 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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 }