diff --git a/lib/TwoFactorAuth.php b/lib/TwoFactorAuth.php index c65590d..7d4eb84 100644 --- a/lib/TwoFactorAuth.php +++ b/lib/TwoFactorAuth.php @@ -115,7 +115,7 @@ class TwoFactorAuth */ public function getQRCodeImageAsDataUri($label, $secret, $size = 200) { - if (!is_int($size) || $size < 0) + if (!is_int($size) || $size <= 0) throw new TwoFactorAuthException('Size must be int > 0'); return 'data:'