Permalink
Browse files

Check if BCRYPT const is defined

  • Loading branch information...
1 parent 0030dd1 commit 649fa92bfad50402884f0d52aeab53624747c406 @Trellmor Trellmor committed Jun 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 weave_hash.php
View
@@ -180,7 +180,7 @@ private function encodeBytes($input) {
class WeaveHashFactory {
public static function factory() {
- if (BCRYPT) {
+ if (defined("BCRYPT") && BCRYPT) {
return new WeaveHashBCrypt(BCRYPT_ROUNDS);
} else {
return new WeaveHashMD5();

0 comments on commit 649fa92

Please sign in to comment.