aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/utility/type_checking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/type_checking.py b/wqflask/utility/type_checking.py
index 00f14ba9..5e98f4ae 100644
--- a/wqflask/utility/type_checking.py
+++ b/wqflask/utility/type_checking.py
@@ -42,6 +42,6 @@ def get_int(vars_obj, name, default=None):
def get_string(vars_obj, name, default=None):
if name in vars_obj:
- if not vars_obj[name] is None:
+ if not vars_obj[name] is None and not vars_obj[name] == "":
return str(vars_obj[name])
return default