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
integration
prechecker
Commits
10c71d8a
Commit
10c71d8a
authored
Dec 13, 2017
by
Marina Glancy
Committed by
Damyon Wiese
Dec 13, 2017
Browse files
MDL-31436 registration: do not send false in update request
parent
23611c37
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/classes/hub/registration.php
View file @
10c71d8a
...
...
@@ -158,8 +158,8 @@ class registration {
$cleanhuburl
=
clean_param
(
HUB_MOODLEORGHUBURL
,
PARAM_ALPHANUMEXT
);
foreach
(
self
::
FORM_FIELDS
as
$field
)
{
$siteinfo
[
$field
]
=
get_config
(
'hub'
,
'site_'
.
$field
.
'_'
.
$cleanhuburl
);
if
(
$siteinfo
[
$field
]
===
false
&&
array_key_exists
(
$field
,
$defaults
)
)
{
$siteinfo
[
$field
]
=
$defaults
[
$field
];
if
(
$siteinfo
[
$field
]
===
false
)
{
$siteinfo
[
$field
]
=
array_key_exists
(
$field
,
$defaults
)
?
$defaults
[
$field
]
:
null
;
}
}
...
...
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