<p>Looks like there was no expiration time set. Looks like a default expiration time, or a check for value submitted are in order.</p>

<p>See comments added to the code below.<br>
luci-commotion repo: luasrc/model/cbi/commotion/app_settings.lua - <br>
The code starts on line 42 and skips chunks with <code>...</code><br>
The error was found on line 51</p>

<pre><code>--! ex_time_num.write
--! @brief Multiple the lifetime by the unit chosen to modify it to seconds.
function ex_time_num.write(self, section, value) -- takes the section and value passed by the browser
...
   local unit = ex_time_units:formvalue(section) -- the unit of time was set (I think it had a default)
...
      if unit == unt then
         value = tonumber(value) * num -- (Line 51)  Tries to compare a number to a nil value.
         sets = true
      end
...
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/luci-commotion/issues/441#issuecomment-62385316">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AC7qBEDXP1u8K8sWoOyd_s3SWrUzlT27ks5nMLiGgaJpZM4C449q.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/opentechinstitute/luci-commotion/issues/441#issuecomment-62385316"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>