From: Manuel Munz Date: Wed, 18 Apr 2012 16:49:10 +0000 (+0000) Subject: applications/transmission: Fix nil value with trport, #397 X-Git-Tag: 0.11.0~763 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e6d5c4d5ae0a71f3e0e15d1e3841d4c4bffcc355;p=project%2Fluci.git applications/transmission: Fix nil value with trport, #397 --- diff --git a/applications/luci-transmission/luasrc/model/cbi/transmission.lua b/applications/luci-transmission/luasrc/model/cbi/transmission.lua index fa036fb0f9..e727a0de38 100644 --- a/applications/luci-transmission/luasrc/model/cbi/transmission.lua +++ b/applications/luci-transmission/luasrc/model/cbi/transmission.lua @@ -17,7 +17,7 @@ require("luci.util") require("luci.model.ipkg") local uci = require "luci.model.uci".cursor() -local trport = uci:get_first("transmission", "transmission", "rpc_port") +local trport = uci:get_first("transmission", "transmission", "rpc_port") or 9091 local running = (luci.sys.call("pidof transmission-daemon > /dev/null") == 0) local webinstalled = luci.model.ipkg.installed("transmission-web") local button = ""