Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
agallavardin
fusiondirectory-plugins
Commits
e2eb19e8
Commit
e2eb19e8
authored
Aug 30, 2013
by
Côme Bernigaud
Committed by
Benoit Mortier
Aug 30, 2013
Browse files
Fixes: #2688 non-JS fall-backs should be removed
parent
175572b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
samba/personal/samba/class_sambaMungedDial.inc
View file @
e2eb19e8
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment