removed obsolete code
This commit is contained in:
parent
f71304ab8a
commit
108612fde3
|
@ -325,29 +325,10 @@ class sambaMungedDial
|
|||
function getOnDemandFlags ()
|
||||
{
|
||||
$result= array();
|
||||
if ($_SESSION["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";
|
||||
} else {
|
||||
$result['CtxInitialProgramMode'] = "";
|
||||
}
|
||||
}else{
|
||||
foreach ($this->timeParams as $value) {
|
||||
$result[$value."Mode"]= "";
|
||||
}
|
||||
|
||||
$result['CtxInitialProgramMode'] = "";
|
||||
|
||||
}
|
||||
|
||||
foreach ($this->timeParams as $value) {
|
||||
$result[$value."Mode"]= "";
|
||||
}
|
||||
$result['CtxInitialProgramMode'] = "";
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue