PHP notice fixed
This commit is contained in:
parent
540304eb26
commit
ee9210151e
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
Lychee.esproj
|
*.esproj
|
||||||
|
|
||||||
php/config.php
|
php/config.php
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user