summaryrefslogtreecommitdiffstats
path: root/module/web/pyload
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-08 23:22:30 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-08 23:22:30 +0100
commit8d9a3826facc7f828265d5dbd036db863bfb4fc2 (patch)
treebaf7e0034ac5278f2370d615a0d41da94affd676 /module/web/pyload
parentpy 2.5 compability (diff)
downloadpyload-8d9a3826facc7f828265d5dbd036db863bfb4fc2.tar.xz
encoding fix
Diffstat (limited to 'module/web/pyload')
-rw-r--r--module/web/pyload/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index 8246f3547..29ad90867 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -354,7 +354,7 @@ def config(request):
newpw = request.POST.get("Accounts|%s|password;%s" % (pluginname, data["login"]), "").strip()
time = request.POST.get("Accounts|%s|time;%s" % (pluginname, data["login"]), "").strip()
- if newpw or (time and (not data["options"].has_key("time") or time != data["options"]["time"][0])):
+ if newpw or (time and (not data["options"].has_key("time") or [time] != data["options"]["time"])):
settings.PYLOAD.update_account(pluginname, data["login"], newpw, {"time": [time]})