From 5223ac916b0db5bd10531035edb45d4d94bb338d Mon Sep 17 00:00:00 2001 From: Michiel Sikma Date: Sun, 11 Dec 2016 00:25:24 +0100 Subject: [PATCH] Fix pkmn-range argument 0 --- includes/iconstack.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/iconstack.php b/includes/iconstack.php index 5abb95c4..7fc5f88d 100644 --- a/includes/iconstack.php +++ b/includes/iconstack.php @@ -381,6 +381,7 @@ class IconStack if (isset($range)) { $range = str_replace(',', '-', $range); $range = explode('-', $range); + $range[0] = $range[0] === '0' ? 1 : $range[0]; if ($range[1] <= $range[0]) { $range[1] = $range[0]; }