mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
less if $thing more if isset($thing). from lenwe.
git-svn-id: http://www.observium.org/svn/observer/trunk@2220 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -11,7 +11,7 @@ function authenticate($username,$password)
|
||||
$sql = "SELECT username FROM `users` WHERE `username`='".$_SESSION['username'] . "'";;
|
||||
$query = mysql_query($sql);
|
||||
$row = @mysql_fetch_assoc($query);
|
||||
if ($row['username'] && $row['username'] == $_SESSION['username'])
|
||||
if (isset($row['username']) && $row['username'] == $_SESSION['username'])
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user