From ed164e591fcd52f77c66f629ff00c216e4278f86 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 4 Jul 2008 13:31:13 +0000 Subject: 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 --- lib/controllerfunctions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/controllerfunctions.lua') 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 -- cgit v1.2.3