Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/erikdubbelboer/phpRedisAdmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Dubbelboer <erik@dubbelboer.com>2017-09-24 03:45:22 +0300
committerGitHub <noreply@github.com>2017-09-24 03:45:22 +0300
commit0344b732b4894b9b864a21b4708a249f04ed37e0 (patch)
tree013469a964aca467c2c1dcde9dcd5e970c84b7c1
parent88e9e0b7c6a0f153030217cd40aa4b1468d9339b (diff)
parent198519140e78731eb6db6d6ce213b18ed361462b (diff)
Merge pull request #116 from aplexup/master
Add isset() to login.inc.php on line 112
-rw-r--r--includes/login.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/login.inc.php b/includes/login.inc.php
index cda4bad..f1abce6 100644
--- a/includes/login.inc.php
+++ b/includes/login.inc.php
@@ -109,7 +109,7 @@ function authCookie()
if (isset($_POST['username'], $_POST['password'])) {
// Login form submitted; correctly?
- if ($config['login'][$_POST['username']]) {
+ if (isset($config['login'][$_POST['username']])) {
$userData = $config['login'][$_POST['username']];
if ($_POST['password'] === $userData['password']) {
// Correct username & password. Set cookie and redirect to home page