commit a9645d25c4bfe2c5a7b42d36d5375d7483d154ea parent a73c6d2e27c1b048139bc0089ed78606409ad786 Author: Timo A. Hummel <felicitus@felicitus.org> Date: Tue, 20 Mar 2018 12:24:43 +0100 Added bugfix where the part limit does not work when specifying -1 Diffstat:
M | src/PartKeepr/PartBundle/Services/PartService.php | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PartKeepr/PartBundle/Services/PartService.php b/src/PartKeepr/PartBundle/Services/PartService.php @@ -104,7 +104,7 @@ class PartService */ public function checkPartLimit() { - if ($this->partLimit !== false || $this->partLimit != "-1") { + if ($this->partLimit !== false && $this->partLimit != "-1") { if ($this->getPartCount() >= $this->partLimit) { return true; }