Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
simple_sitemap
Commits
cc2a5dea
Commit
cc2a5dea
authored
Nov 10, 2016
by
Pawel G
Browse files
Reset array of entity types in config after unsetting a value
parent
3a7e5817
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Simplesitemap.php
View file @
cc2a5dea
...
...
@@ -102,8 +102,7 @@ class Simplesitemap {
$enabled_entity_types
=
$this
->
getSetting
(
'enabled_entity_types'
);
if
((
$key
=
array_search
(
$entity_type_id
,
$enabled_entity_types
))
!==
FALSE
)
{
unset
(
$enabled_entity_types
[
$key
]);
array_values
(
$enabled_entity_types
);
$this
->
saveSetting
(
'enabled_entity_types'
,
$enabled_entity_types
);
$this
->
saveSetting
(
'enabled_entity_types'
,
array_values
(
$enabled_entity_types
));
}
// Deleting inclusion settings.
...
...
Write
Preview
Markdown
is supported
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