PHP notice fixed

This commit is contained in:
Tobias Reich 2014-01-26 18:00:09 +01:00
parent 540304eb26
commit ee9210151e
2 changed files with 2 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
Lychee.esproj *.esproj
php/config.php php/config.php

View File

@ -169,6 +169,7 @@ if (!empty($_POST['function'])||!empty($_GET['function'])) {
// Settings // Settings
case 'setLogin': if (isset($_POST['username'])&&isset($_POST['password'])) case 'setLogin': if (isset($_POST['username'])&&isset($_POST['password']))
if (!isset($_POST['oldPassword'])) $_POST['oldPassword'] = '';
echo setLogin($_POST['oldPassword'], $_POST['username'], $_POST['password']); echo setLogin($_POST['oldPassword'], $_POST['username'], $_POST['password']);
break; break;