diff options
Diffstat (limited to 'pyload/utils')
-rw-r--r-- | pyload/utils/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/utils/__init__.py b/pyload/utils/__init__.py index 5d59b9cbf..bc4e27df4 100644 --- a/pyload/utils/__init__.py +++ b/pyload/utils/__init__.py @@ -212,7 +212,7 @@ def to_string(value): return str(value) if not isinstance(value, basestring) else value def to_bool(value): - if not isinstance(value, basestring): return value + if not isinstance(value, basestring): return True if value else False return True if value.lower() in ("1", "true", "on", "an", "yes") else False def to_int(string, default=0): |