From 128610aba8c2231d99b39887571522b082221dcc Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 22 Dec 2015 14:57:23 +0100 Subject: [PATCH] Only use if option of AD is activated. Tiquet: Tickets #3116 --- pandora_console/include/auth/mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/auth/mysql.php b/pandora_console/include/auth/mysql.php index 60b650a04a..38f1889e98 100644 --- a/pandora_console/include/auth/mysql.php +++ b/pandora_console/include/auth/mysql.php @@ -229,7 +229,7 @@ function process_user_login_remote ($login, $pass, $api = false) { return false; } - if ($config["auth"] === 'ad' && isset($config['ad_advanced_config']) && $config['ad_advanced_config'])){ + if (($config["auth"] === 'ad') && (isset($config['ad_advanced_config']) && $config['ad_advanced_config'])){ $return = enterprise_hook ('prepare_permissions_groups_of_user_ad', array ($login, $pass, false, true));