fix PHP8 errors

Dieser Commit ist enthalten in:
o.pinke 2023-03-02 19:45:37 +01:00
Ursprung dfcc174626
Commit 85d3f956e8
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -232,8 +232,8 @@ class Contenido_Perm {
return true; return true;
} elseif ($item_rights[$area] != "noright") { } elseif ($item_rights[$area] != "noright") {
$groupsForUser = $this->getGroupsForUser($auth->auth[uid]); $groupsForUser = $this->getGroupsForUser($auth->auth['uid']);
$groupsForUser[] = $auth->auth[uid]; $groupsForUser[] = $auth->auth['uid'];
$tmp_userstring = implode("','", $groupsForUser); $tmp_userstring = implode("','", $groupsForUser);
@ -596,8 +596,8 @@ class Contenido_Perm {
} }
} elseif ($item_rights[$value] != "noright") { } elseif ($item_rights[$value] != "noright") {
$groupsForUser = $this->getGroupsForUser($auth->auth[uid]); $groupsForUser = $this->getGroupsForUser($auth->auth['uid']);
$groupsForUser[] = $auth->auth[uid]; $groupsForUser[] = $auth->auth['uid'];
//else search for rights for this user in this area //else search for rights for this user in this area
$sql = "SELECT $sql = "SELECT