We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19cd002 commit ad23416Copy full SHA for ad23416
edit.php
@@ -38,12 +38,11 @@
38
die('ERROR: Your hash key is to long (max length is '.$config['maxkeylen'].')');
39
}
40
41
- $redis->hSet($_POST['key'], $_POST['hkey'], $_POST['value']);
42
-
43
- if ($edit) {
+ if ($edit && !$redis->hExists($_POST['key'], $_POST['hkey'])) {
44
$redis->hDel($_POST['key'], $_GET['hkey']);
45
46
+ $redis->hSet($_POST['key'], $_POST['hkey'], $_POST['value']);
47
48
49
// List
0 commit comments