Changeset 326

Show
Ignore:
Timestamp:
12/11/06 00:38:53 (2 years ago)
Author:
laurentj
Message:

fix ticket #63 notice dans jAuthDriver* quand l'option password_crypt_function n'existe pas
fix ticket #64 Mauvais caractère dans init.php

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/auth/jAuthDriverClass.class.php

    r271 r326  
    8181 
    8282    protected function cryptPassword($password){ 
    83         $f=$this->_params['password_crypt_function']; 
    84         if( $f != '') 
    85            $password = $f($password); 
     83        if(isset($this->_params['password_crypt_function'])){ 
     84            $f=$this->_params['password_crypt_function']; 
     85            if( $f != '') 
     86               $password = $f($password); 
     87        } 
    8688        return $password; 
    8789    } 
  • trunk/lib/jelix/auth/jAuthDriverDb.class.php

    r271 r326  
    8282 
    8383    protected function cryptPassword($password){ 
    84         $f=$this->_params['password_crypt_function']; 
    85         if( $f != '') 
    86            $password = $f($password); 
     84        if(isset($this->_params['password_crypt_function'])){ 
     85            $f=$this->_params['password_crypt_function']; 
     86            if( $f != '') 
     87               $password = $f($password); 
     88        } 
    8789        return $password; 
    8890    } 
  • trunk/lib/jelix/init.php

    r319 r326  
    6060if(!defined('E_RECOVERABLE_ERROR')) 
    6161    define ('E_RECOVERABLE_ERROR',4096); 
    62 error_reporting (E_ALL |E_RECOVERABLE_ERROR); 
    63 #else  
     62error_reporting (E_ALL | E_RECOVERABLE_ERROR); 
     63#else 
    6464error_reporting (E_ALL); 
    6565#endif 
Download in other formats: Unified Diff Zip Archive