Commit e2eb19e8 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2688 non-JS fall-backs should be removed

parent 175572b3
......@@ -321,27 +321,18 @@ class sambaMungedDial
function getOnDemandFlags ()
{
$result= array();
if (session::get("js")){
foreach ($this->timeParams as $value) {
if (!isset($this->ctx[$value]) || (isset($this->ctx[$value]) && $this->ctx[$value] == 0)) {
$result[$value."Mode"]= "disabled";
} else {
$result[$value."Mode"]= "";
}
}
if (substr($this->ctx['CtxCfgFlags1'], 6, 1) == "1") {
$result['CtxInitialProgramMode'] = "disabled";
foreach ($this->timeParams as $value) {
if (!isset($this->ctx[$value]) || (isset($this->ctx[$value]) && $this->ctx[$value] == 0)) {
$result[$value."Mode"]= "disabled";
} else {
$result['CtxInitialProgramMode'] = "";
}
}else{
foreach ($this->timeParams as $value) {
$result[$value."Mode"]= "";
}
}
if (substr($this->ctx['CtxCfgFlags1'], 6, 1) == "1") {
$result['CtxInitialProgramMode'] = "disabled";
} else {
$result['CtxInitialProgramMode'] = "";
}
return $result;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment