Skip to content

Commit

Permalink
Merge branch 'release_7' of https://github.com/ILIAS-eLearning/ILIAS
Browse files Browse the repository at this point in the history
…into release_7
  • Loading branch information
alex40724 committed Feb 22, 2022
2 parents 7113fe2 + 0114f60 commit 7b99f14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getPriority() : int
*/
final public function withPriority(int $priority) : LayoutModification
{
if ((self::PRIORITY_LOW <= $priority) && ($priority <= self::PRIORITY_HIGH)) {
if ((self::PRIORITY_LOW > $priority) || ($priority > self::PRIORITY_HIGH)) {
throw new LogicException("\$priority MUST be between LayoutModification::PRIORITY_LOW, LayoutModification::PRIORITY_MEDIUM or LayoutModification::PRIORITY_HIGH");
}
$clone = clone $this;
Expand Down

0 comments on commit 7b99f14

Please sign in to comment.