From 6d8e03039d7a1e4f1211beea3cf32f65d64bc779 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 21 Feb 2013 02:09:51 -0500 Subject: [PATCH] Minor - Added isset to avoid notice --- main/auth/external_login/login.ldap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/auth/external_login/login.ldap.php b/main/auth/external_login/login.ldap.php index 7b1d77f2c8..873c2d6e94 100644 --- a/main/auth/external_login/login.ldap.php +++ b/main/auth/external_login/login.ldap.php @@ -71,5 +71,7 @@ if ($ldap_user !== false) { error_log('extldap_authenticate error'); $loginFailed = true; $uidReset = false; - unset($_user['user_id']); + if (isset($_user) && isset($_user['user_id'])) { + unset($_user['user_id']); + } }