summaryrefslogtreecommitdiffstats
path: root/lib/controllerfunctions.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-07-04 13:31:13 +0000
committerTed Trask <ttrask01@yahoo.com>2008-07-04 13:31:13 +0000
commited164e591fcd52f77c66f629ff00c216e4278f86 (patch)
tree7af2d09c720ce3717949833a5137fa585f352daf /lib/controllerfunctions.lua
parent060b3f4716e38a69d85ce104abbc21e384fb70a5 (diff)
downloadacf-core-ed164e591fcd52f77c66f629ff00c216e4278f86.tar.bz2
acf-core-ed164e591fcd52f77c66f629ff00c216e4278f86.tar.xz
Fixed expert page to work when prefix or controller has magic characters. Added public getenabled function to modelfunctions and made controllerfunctions work with it.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1273 ab2d0c66-481e-0410-8bed-d214d4d58bed
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