Skip to content
Snippets Groups Projects
Commit a8bd7ade authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

used wrong command to delete hash

parent 3a86ea9d
No related branches found
No related tags found
2 merge requests!1393Development,!1392used wrong command to delete hash
...@@ -158,7 +158,7 @@ class HumanVerification extends Controller ...@@ -158,7 +158,7 @@ class HumanVerification extends Controller
if ($user["whitelist"]) { if ($user["whitelist"]) {
$pipeline->hset(HumanVerification::PREFIX . "." . $uid, 'unusedResultPages', "0"); $pipeline->hset(HumanVerification::PREFIX . "." . $uid, 'unusedResultPages', "0");
} else { } else {
$pipeline->hdel(HumanVerification::PREFIX . "." . $uid); $pipeline->del(HumanVerification::PREFIX . "." . $uid);
$pipeline->srem(HumanVerification::PREFIX . "." . $id, $uid); $pipeline->srem(HumanVerification::PREFIX . "." . $id, $uid);
} }
$pipeline->expire(HumanVerification::PREFIX . "." . $uid, $user["whitelist"] ? HumanVerification::EXPIRELONG : HumanVerification::EXPIRESHORT); $pipeline->expire(HumanVerification::PREFIX . "." . $uid, $user["whitelist"] ? HumanVerification::EXPIRELONG : HumanVerification::EXPIRESHORT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment