From f6c86b3b74d874c08b6d7425fed4321010dd833d Mon Sep 17 00:00:00 2001 From: Miguel N Date: Sun, 27 Dec 2020 19:42:48 +0000 Subject: [PATCH] Updated logic --- src/Bot/Helpers/CatAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bot/Helpers/CatAPI.php b/src/Bot/Helpers/CatAPI.php index 292763a..6167c25 100644 --- a/src/Bot/Helpers/CatAPI.php +++ b/src/Bot/Helpers/CatAPI.php @@ -44,7 +44,7 @@ class CatAPI { Analog::debug('CatAPI: Fetching cat picture with count ' . $count . ' and size ' . $size); // anti smart-ass device - if ($count > 0 && $count <= $this->hardLimit) + if ($count <= $this->hardLimit) { Analog::error('CatAPI: Invalid arguments: Count of ' . $count . ' is over the hard limit of ' . $this->hardLimit); throw new Exception("Unacceptable quantity: " . $count . ". Please try again with no more than " . $this->hardLimit . " picture(s).");