Show
Ignore:
Timestamp:
01/16/06 10:32:15 (3 years ago)
Author:
gerd
Message:

fixed return values of references

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/patSession/Storage.php

    r35 r37  
    55 * $Id$ 
    66 * 
    7  * @version     1.1.2 
     7 * @version     1.1.3 
    88 * @package patSession 
    99 * @subpackage Storage 
     
    270270        { 
    271271                if( $this->_state !== 'active' ) { 
    272                         return patErrorManager::raiseError( 'patSession:' . PATSESSION_ERROR_NOT_ACTIVE, 
     272                        $error =& patErrorManager::raiseError( 'patSession:' . PATSESSION_ERROR_NOT_ACTIVE, 
    273273                                                'Cannot set value because session not active.', 
    274274                                                'Either the session was destroyed, has expired or locked by security' 
    275275                                         ); 
     276            return $error; 
    276277                } 
    277278                 
     
    291292        { 
    292293                if( $this->_state !== 'active' ) { 
    293                                return patErrorManager::raiseWarning( 'patSession:' . PATSESSION_ERROR_NOT_ACTIVE, 
     294                    $error =& patErrorManager::raiseWarning( 'patSession:' . PATSESSION_ERROR_NOT_ACTIVE, 
    294295                                                'Cannot recieve value because session not active.', 
    295296                                                'Either the session was destroyed, has expired or locked because of security reasons.' 
    296297                                         ); 
     298            return $error; 
    297299                } 
    298300                 
     
    315317        { 
    316318                if( $this->_state !== 'active' ) { 
    317                                 return patErrorManager::raiseWarning( 'patSession:' . PATSESSION_ERROR_NOT_ACTIVE, 
     319                                $error =& patErrorManager::raiseWarning( 'patSession:' . PATSESSION_ERROR_NOT_ACTIVE, 
    318320                                                'Cannot recieve value because session not active.', 
    319321                                                'Either the session was destroyed, has expired or locked because of security reasons.' 
    320322                                         ); 
     323                return $error; 
    321324                } 
    322325                 
     
    428431                if( $this->_state !== 'active' ) { 
    429432                        if( !$this->_checkSecurity( true ) ) { 
    430                                 return patErrorManager::raiseNotice( 'patSession:' . PATSESSION_ERROR_NOT_ACTIVE, 
     433                                $error =& patErrorManager::raiseNotice( 'patSession:' . PATSESSION_ERROR_NOT_ACTIVE, 
    431434                                                'Session is not active.', 
    432435                                                'Either the session was destroyed, has expired or locked because of security reasons: '. $this->_state.'.' 
    433436                                         ); 
     437                return $error; 
    434438                        } 
    435439                }