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
centreon
centreon
Commits
6f57883b
Commit
6f57883b
authored
Nov 12, 2020
by
Kevin Duret
Browse files
fix(admin): retrieve 'show deprecated pages' option management (#9196)
Refs: MON-6307
parent
90345321
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/include/Administration/myAccount/DB-Func.php
View file @
6f57883b
...
...
@@ -143,6 +143,7 @@ function updateContact($contact_id = null)
'contact_pager = :contactPager, '
.
'default_page = :defaultPage, '
.
'contact_js_effects = :contactJsEffects, '
.
'show_deprecated_pages = :showDeprecatedPages, '
.
'contact_autologin_key = :contactAutologinKey'
;
$password_encrypted
=
null
;
if
(
!
empty
(
$ret
[
'contact_passwd'
]))
{
...
...
@@ -182,6 +183,7 @@ function updateContact($contact_id = null)
);
$stmt
->
bindValue
(
':defaultPage'
,
!
empty
(
$ret
[
'default_page'
])
?
$ret
[
'default_page'
]
:
null
,
\
PDO
::
PARAM_INT
);
$stmt
->
bindValue
(
':contactJsEffects'
,
isset
(
$ret
[
'contact_js_effects'
])
?
1
:
0
,
\
PDO
::
PARAM_STR
);
$stmt
->
bindValue
(
':showDeprecatedPages'
,
isset
(
$ret
[
'show_deprecated_pages'
])
?
1
:
0
,
\
PDO
::
PARAM_STR
);
$stmt
->
bindValue
(
':contactId'
,
$contact_id
,
\
PDO
::
PARAM_INT
);
if
(
!
is_null
(
$password_encrypted
))
{
$stmt
->
bindValue
(
':contactPasswd'
,
$password_encrypted
,
\
PDO
::
PARAM_STR
);
...
...
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