fixing minor bug resulting in undefined index notice

This commit is contained in:
jelhan 2013-10-23 12:27:29 +02:00
parent 74162ee90d
commit 3dc34d884a

View file

@ -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'];