Skip to content

Commit 4841f61

Browse files
Copilotthorsten
andcommitted
Remove unnecessary null coalescing operator
Co-authored-by: thorsten <45284+thorsten@users.noreply.github.com>
1 parent 039316c commit 4841f61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpmyfaq/admin/category.add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
// Validate that the category was found
8888
if ($parentCategoryData->getId() > 0) {
89-
$parentCategoryLang = $parentCategoryData->getLang() ?? $faqConfig->getLanguage()->getLanguage();
89+
$parentCategoryLang = $parentCategoryData->getLang();
9090
$parentCategoryName = $parentCategoryData->getName();
9191
} else {
9292
// Parent category doesn't exist in database - use fallback values

0 commit comments

Comments
 (0)