Skip to content
  • Sponsor
  • Notifications You must be signed in to change notification settings
  • Fork 72

Commit afbfe39

Browse files
committedMar 11, 2025·
refactor: Set typeId to null if it’s empy
1 parent 9ae9772 commit afbfe39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/controllers/SettingsController.php

+3
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ public function actionEditContent(
532532
if (is_string($typeId)) {
533533
$typeId = (int)$typeId;
534534
}
535+
if (empty($typeId)) {
536+
$typeId = null;
537+
}
535538
// Get the (entry) type menu
536539
$typeMenu = [];
537540
$seoElement = Seomatic::$plugin->seoElements->getSeoElementByMetaBundleType($sourceBundleType);

0 commit comments

Comments
 (0)
Please sign in to comment.