Skip to content

Commit cb16864

Browse files
committed
Fixed an incorrect comparison
1 parent 64a575d commit cb16864

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

wcfsetup/install/files/lib/system/file/processor/AttachmentFileProcessor.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ private function getAttachmentHandlerFromContext(array $context): ?AttachmentHan
302302
);
303303
}
304304

305+
/**
306+
* @param array<string, mixed> $context
307+
*/
305308
private function getShowOrderFromContext(array $context): int
306309
{
307310
try {

wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ private function parsePackageUpdateXMLBlock(
435435
case 'fromversions':
436436
$fromversions = $xpath->query('child::*', $child);
437437
foreach ($fromversions as $fromversion) {
438-
if ($fromversion === '*') {
438+
if ($fromversion->textContent === '*') {
439439
continue;
440440
}
441441

0 commit comments

Comments
 (0)