fixed PHP notice

This commit is contained in:
Roland Gruber 2012-02-25 18:40:16 +00:00
parent 77f9862ec4
commit 40b433f545
1 changed files with 3 additions and 0 deletions

View File

@ -197,6 +197,9 @@ class ddns extends baseModule {
* This function check if ddns is enable.
*/
private function check_if_ddns_is_enable() {
if (!in_array('dhcp', $_SESSION['config']->get_ActiveTypes())) {
return false;
}
$ldap = $_SESSION['ldap']->server();
$dn = $_SESSION['config']->get_suffix('dhcp');