From ec2ca0fc511df23aa86fdd217cd562afc867fff8 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 13 Jul 2018 08:59:33 +0200 Subject: [PATCH] Fix variable name in TMultipleFormField::maximumMultiples() See #2509 --- .../lib/system/form/builder/field/TMultipleFormField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php index b7e3b765c7..eddd4e09a5 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php @@ -93,7 +93,7 @@ trait TMultipleFormField { public function maximumMultiples(int $maximum): IMultipleFormField { if ($maximum !== IMultipleFormField::NO_MAXIMUM_MULTIPLES) { if ($maximum <= 0) { - throw new \InvalidArgumentException("The maximum number of values has to be positive, '{$minimum}' given."); + throw new \InvalidArgumentException("The maximum number of values has to be positive, '{$maximum}' given."); } if ($this->getMinimumMultiples() !== 0 && $maximum < $this->getMinimumMultiples()) { -- 2.20.1