From 689cba4d4ba37bdcb57ea6c6bbf55e7546d428c3 Mon Sep 17 00:00:00 2001
From: Adrian Lang <lang@cosmocode.de>
Date: Tue, 23 Mar 2010 15:23:35 +0100
Subject: [PATCH] No warning for an undefined variable

---
 inc/auth.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
GitLab