summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Janssen <rob@devcorner.nl>2015-03-20 12:57:03 +0100
committerRob Janssen <rob@devcorner.nl>2015-03-20 12:57:03 +0100
commit9e417bdb2f521aff0434b0f7278c18a2b9eed13f (patch)
tree50cc68e8a9d4629bdb0385315085838801c88dd0
parent767f11d62be2acb787b1cfb839fea690baa323ba (diff)
downloadTwoFactorAuth-9e417bdb2f521aff0434b0f7278c18a2b9eed13f.zip
TwoFactorAuth-9e417bdb2f521aff0434b0f7278c18a2b9eed13f.tar.gz
TwoFactorAuth-9e417bdb2f521aff0434b0f7278c18a2b9eed13f.tar.bz2
* Size for QR image must be > 0
-rw-r--r--lib/TwoFactorAuth.php2
1 files changed, 1 insertions, 1 deletions
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:'