fixed PHP notice
This commit is contained in:
parent
77f9862ec4
commit
40b433f545
|
@ -197,6 +197,9 @@ class ddns extends baseModule {
|
||||||
* This function check if ddns is enable.
|
* This function check if ddns is enable.
|
||||||
*/
|
*/
|
||||||
private 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();
|
$ldap = $_SESSION['ldap']->server();
|
||||||
$dn = $_SESSION['config']->get_suffix('dhcp');
|
$dn = $_SESSION['config']->get_suffix('dhcp');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue