summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-16 02:00:16 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-16 02:00:16 +0000
commit662186e815f311ceda141ec475bdccc94b444a5e (patch)
treea890324ab9025af0ed9dd16b08fd7f3e91af9580 /modules/admin-full/luasrc
parent7dfe9098a5a82085aa5b1e1d2f4caec6169ce872 (diff)
* luci/admin-full: fix another possible nil value
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
index 35c85c6969..7873842f81 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
@@ -48,7 +48,7 @@ end
used = v:option(DummyValue, "used", translate("a_s_fstab_used"))
function used.cfgvalue(self, section)
- return mounts[section].percent .. " (" ..
+ return ( mounts[section].percent or "0%" ) .. " (" ..
luci.tools.webadmin.byte_format(
( tonumber(mounts[section].used) or 0 ) * 1024
) .. ")"