From 649fa92bfad50402884f0d52aeab53624747c406 Mon Sep 17 00:00:00 2001 From: Daniel Triendl Date: Wed, 5 Jun 2013 02:08:17 +0200 Subject: [PATCH] Check if BCRYPT const is defined --- weave_hash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave_hash.php b/weave_hash.php index 3778e9b..fc951a5 100644 --- a/weave_hash.php +++ b/weave_hash.php @@ -180,7 +180,7 @@ class WeaveHashBCrypt implements WeaveHash { class WeaveHashFactory { public static function factory() { - if (BCRYPT) { + if (defined("BCRYPT") && BCRYPT) { return new WeaveHashBCrypt(BCRYPT_ROUNDS); } else { return new WeaveHashMD5();