Browse Source

PHP notice fixed

Tobias Reich 10 years ago
parent
commit
ee9210151e
2 changed files with 2 additions and 1 deletions
  1. 1 1
      .gitignore
  2. 1 0
      php/api.php

+ 1 - 1
.gitignore

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

+ 1 - 0
php/api.php

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