Skip to content

Commit

Permalink
Fixed PHP error thrown by Craft\SitemapPlugin::prepSettings() when ru…
Browse files Browse the repository at this point in the history
…nning a Schematic import

Fixes Issue craftplugins#24 in parent repo
  • Loading branch information
mike27cubes committed Jun 23, 2016
1 parent 2c82ae4 commit 7eb057d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sitemap/SitemapPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function prepSettings($input)
// Loop through valid sections
foreach (craft()->sitemap->sectionsWithUrls as $section) {
// Check if the section is enabled
if ($input['enabled'][$section->id]) {
if (array_key_exists('enabled', $input) && $input['enabled'][$section->id]) {
// If it is, save the changefreq and priority values into settings
$settings['sections'][$section->id] = array(
'changefreq' => $input['changefreq'][$section->id],
Expand Down

0 comments on commit 7eb057d

Please sign in to comment.