From a0ba8a0488198711ce75ac4b3be5a46a784eb686 Mon Sep 17 00:00:00 2001
From: RaNaN <Mast3rRaNaN@hotmail.de>
Date: Mon, 18 Jul 2011 20:23:24 +0200
Subject: fixed captcha on webif + configparser

---
 module/web/json_app.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'module/web/json_app.py')

diff --git a/module/web/json_app.py b/module/web/json_app.py
index 53caeb9f1..959b3d974 100644
--- a/module/web/json_app.py
+++ b/module/web/json_app.py
@@ -328,7 +328,7 @@ def set_captcha():
 
     task = PYLOAD.getCaptchaTask()
 
-    if id:
+    if task.tid >= 0:
         src = "data:image/%s;base64,%s" % (task.type, task.data)
 
         return {'captcha': True, 'id': task.tid, 'src': src, 'result_type' : task.resultType}
-- 
cgit v1.2.3