summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/FunnyDot.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/FunnyDot.php b/extensions/FunnyDot.php
index 7cd00007..df81129e 100644
--- a/extensions/FunnyDot.php
+++ b/extensions/FunnyDot.php
@@ -20,9 +20,8 @@ public static function checkAntiSpamHash()
if (!empty($_COOKIE['AntiSpamTime']) && !empty($_COOKIE['AntiSpamHash']))
{
$time = intval($_COOKIE['AntiSpamTime']);
- $hash = self::$_COOKIE['AntiSpamHash'];
- if ($hash != sha1($time.$wgAntiSpamHash))
+ if ($_COOKIE['AntiSpamHash'] != sha1($time.$wgAntiSpamHash))
{
return false;
}