fixing minor bug resulting in undefined index notice
This commit is contained in:
parent
74162ee90d
commit
3dc34d884a
1 changed files with 1 additions and 1 deletions
2
api.php
2
api.php
|
@ -17,7 +17,7 @@ if (isset($_REQUEST['action'])) {
|
|||
// write new data or update existing data
|
||||
case 'set':
|
||||
$id = (isset($_POST['id'])) ? (string) $_POST['id'] : 0;
|
||||
$version = ($_POST['version']) ? (string) $_POST['version'] : '';
|
||||
$version = (isset($_POST['version'])) ? (string) $_POST['version'] : '';
|
||||
|
||||
if (!isset($_POST['data'])) break;
|
||||
$data = (string) $_POST['data'];
|
||||
|
|
Loading…
Reference in a new issue