summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-03-23 15:23:35 +0100
committerAdrian Lang <lang@cosmocode.de>2010-03-23 15:27:20 +0100
commit689cba4d4ba37bdcb57ea6c6bbf55e7546d428c3 (patch)
tree2965b4b1cc0f62bb0ca1d64430f0c997e016c35f /inc/auth.php
parentebf65d37ec50cce097ad8cddfb43acc5ea5aea21 (diff)
downloadrpg-689cba4d4ba37bdcb57ea6c6bbf55e7546d428c3.tar.gz
rpg-689cba4d4ba37bdcb57ea6c6bbf55e7546d428c3.tar.bz2
No warning for an undefined variable
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 33626cf80..6804c2696 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(!$magic) $magic = 'apr1';
+ if(!defined($magic)) $magic = 'apr1';
$salt = substr($salt,0,8);
$len = strlen($clear);
$text = $clear.'$'.$magic.'$'.$salt;