From 9e417bdb2f521aff0434b0f7278c18a2b9eed13f Mon Sep 17 00:00:00 2001 From: Rob Janssen Date: Fri, 20 Mar 2015 12:57:03 +0100 Subject: [PATCH] * Size for QR image must be > 0 --- lib/TwoFactorAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:'