summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-03-24 11:25:30 +0100
committerAdrian Lang <lang@cosmocode.de>2010-03-24 11:26:52 +0100
commit3371a8b471eea344a99f015cdf0ef9089b1f20ef (patch)
treeb11780be4a495abe10bdc9afa03f71c579d30d8d /inc/auth.php
parentb7eccc60d91f1a719b3204da92d4becb2928210e (diff)
downloadrpg-3371a8b471eea344a99f015cdf0ef9089b1f20ef.tar.gz
rpg-3371a8b471eea344a99f015cdf0ef9089b1f20ef.tar.bz2
Fixed selffail.
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php
index 6804c2696..ace379214 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -931,7 +931,7 @@ function auth_cryptPassword($clear,$method='',$salt=null){
$magic = '1';
case 'apr1':
//from http://de.php.net/manual/en/function.crypt.php#73619 comment by <mikey_nich at hotmail dot com>
- if(!defined($magic)) $magic = 'apr1';
+ if(!isset($magic)) $magic = 'apr1';
$salt = substr($salt,0,8);
$len = strlen($clear);
$text = $clear.'$'.$magic.'$'.$salt;