Skip to content

Commit

Permalink
fix: corrected check on uploaded category image
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 3, 2025
1 parent 734e08a commit b78d5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/admin/category.main.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
$categoryLang = Filter::filterInput(INPUT_POST, 'catlang', FILTER_SANITIZE_SPECIAL_CHARS);
$existingImage = Filter::filterInput(INPUT_POST, 'existing_image', FILTER_SANITIZE_SPECIAL_CHARS);
$existingImage = is_null($existingImage) ? '' : $existingImage;
$image = count($uploadedFile) ? $categoryImage->getFileName(
$image = ($uploadedFile instanceof UploadedFile) ? $categoryImage->getFileName(
$categoryId,
$categoryLang
) : $existingImage;
Expand Down

0 comments on commit b78d5f9

Please sign in to comment.