summaryrefslogtreecommitdiffstats
path: root/lib/controllerfunctions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/controllerfunctions.lua')
-rw-r--r--lib/controllerfunctions.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/controllerfunctions.lua b/lib/controllerfunctions.lua
index 53ef927..298eac6 100644
--- a/lib/controllerfunctions.lua
+++ b/lib/controllerfunctions.lua
@@ -47,7 +47,7 @@ function handle_startstop(self, startstopfunction, getstatusfunction, clientdata
result = self:redirect_to_referrer(result)
local status = getstatusfunction()
- status = status.value.status
+ if status.value.status then status = status.value.status end
return cfe({ type="group", value={status=status, result=result} })
end