Skip to content

Commit 40f1b89

Browse files
Cyperghostdtdesign
andauthored
Update wcfsetup/install/files/lib/system/condition/type/request/NotDayOfWeekRequestConditionType.class.php
Co-authored-by: Alexander Ebert <[email protected]>
1 parent 82b5e71 commit 40f1b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wcfsetup/install/files/lib/system/condition/type/request/NotDayOfWeekRequestConditionType.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function migrateConditionData(array &$conditionData): array
7474
// We must remove all selected week of days to convert the previous condition from an “or” to an “and” condition.
7575
$daysOfWeeks = \array_diff_key(DateUtil::getWeekDays(), $daysOfWeeks);
7676

77-
foreach ($daysOfWeeks as $dayOfWeek => $_) {
77+
foreach (\array_keys($daysOfWeeks) as $dayOfWeek) {
7878
$conditions[] = [
7979
'identifier' => $this->getIdentifier(),
8080
'value' => (string)$dayOfWeek,

0 commit comments

Comments
 (0)