From b4248bc8989b05eb055ed83bb4b7b4add6271255 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 24 Apr 2017 20:13:20 +0200 Subject: [PATCH] new type API --- lam/lib/types/dhcp.inc | 2 +- lam/lib/types/user.inc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lam/lib/types/dhcp.inc b/lam/lib/types/dhcp.inc index daf27578..e8b179a9 100644 --- a/lam/lib/types/dhcp.inc +++ b/lam/lib/types/dhcp.inc @@ -284,7 +284,7 @@ class lamDHCPList extends lamList { function listDoPost() { $fragment = parent::listDoPost(); if (isset($_POST['dhcpDefaults'])) { - metaRefresh("../account/edit.php?type=dhcp&DN='".$_SESSION['config']->get_suffix('dhcp')."'"); + metaRefresh("../account/edit.php?type=dhcp&DN='" . $this->type->getSuffix() . "'"); die(); } else { diff --git a/lam/lib/types/user.inc b/lam/lib/types/user.inc index 9a8b6b0d..c3d67b02 100644 --- a/lam/lib/types/user.inc +++ b/lam/lib/types/user.inc @@ -630,7 +630,6 @@ class lamUserList extends lamList { */ protected function refreshPrimaryGroupTranslation() { $this->trans_primary_hash = array(); - $grp_suffix = $_SESSION['config']->get_Suffix('group'); $filter = "objectClass=posixGroup"; $attrs = array("cn", "gidNumber"); $entries = searchLDAPByAttribute(null, null, 'posixGroup', $attrs, array('group'));