Skip to content

Commit

Permalink
Fix for issue ethercreative#470
Browse files Browse the repository at this point in the history
  • Loading branch information
cloetensbrecht authored Apr 10, 2024
1 parent c2df8b9 commit 5cf3e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/SitemapService.php
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ private function _getPageCount (Element $type, $id)
*/
private function _setCriteriaIdByType ($criteria, Element $type, $id)
{
switch ($type::class) {
switch (get_class($type)) {
case 'craft\\elements\\Entry':
$criteria->sectionId = $id;
break;
Expand Down

0 comments on commit 5cf3e59

Please sign in to comment.