fixed problem when page was not opened

This commit is contained in:
Roland Gruber 2013-02-24 11:58:46 +00:00
parent 1ab8b765a5
commit dfa84edce8
1 changed files with 2 additions and 0 deletions

View File

@ -153,6 +153,8 @@ class ddns extends baseModule {
* @return boolean true if LDAP operation can be done
*/
public function module_complete() {
$this->attributes = &$this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes;
$this->orig = &$this->getAccountContainer()->getAccountModule('dhcp_settings')->orig;
if ($this->getAccountContainer()->dn_orig==$_SESSION['config']->get_suffix('dhcp')) {
// check if DHCP main settings and valid DHCP entry
if (!in_array_ignore_case('dhcpService', $this->attributes['objectClass']) && !in_array_ignore_case('dhcpServer', $this->attributes['objectClass'])) {