From 4847fe45ff09b0fe03f1d7c5122d0a812c3316b6 Mon Sep 17 00:00:00 2001 From: Fabian Wiget Date: Wed, 19 Jan 2022 11:36:13 +0100 Subject: [PATCH] Fix check whether start and end address have been set in Ip rule (#1375) by @fabacino --- library/Rules/Ip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Rules/Ip.php b/library/Rules/Ip.php index ea3d7d4e..c82c1951 100644 --- a/library/Rules/Ip.php +++ b/library/Rules/Ip.php @@ -105,7 +105,7 @@ final class Ip extends AbstractRule private function createRange(): ?string { - if ($this->endAddress && $this->endAddress) { + if ($this->startAddress && $this->endAddress) { return $this->startAddress . '-' . $this->endAddress; }