diff --git a/controllers/service.py b/controllers/service.py index 1594cac0b0009d2e65939c39811ee4a58658868d..24cc002caeb911eadac076fe57a1b920f705e52f 100644 --- a/controllers/service.py +++ b/controllers/service.py @@ -52,7 +52,7 @@ class storage_service(object): @classmethod def getItem(self, key, value=''): res = Storage.getItem(key,value) - if str(res) == '0' or str(res) == 'false' or str(res) == 'False': + if not str(res) or str(res) == '0' or str(res) == 'false' or str(res) == 'False': return 0 return res