Skip to content

Commit

Permalink
Merge pull request poweradmin#330 from SG5/patch-1
Browse files Browse the repository at this point in the history
Check index and prevent notice
  • Loading branch information
SebTM authored Dec 31, 2017
2 parents a8f619b + 6af76f2 commit 49c3fd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/plugins/auth_local/auth_local.plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ function authenticate_local() {
}

function userUsesLDAP() {
if (!isset($_SESSION["userlogin"])) {
return false;
}

global $db;

$rowObj = $db->queryRow("SELECT id FROM users WHERE username=" . $db->quote($_SESSION["userlogin"], 'text') . " AND use_ldap=1");
Expand Down

0 comments on commit 49c3fd1

Please sign in to comment.