Changeset 4284 in subversion


Ignore:
Timestamp:
Nov 27, 2010 11:37:22 AM (2 years ago)
Author:
thomasb
Message:

Simplify shutdown, now that it is always triggered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/kolab_core/rcube_kolab.php

    r4247 r4284  
    4949            Auth::setCredential('password', $pwd); 
    5050        } 
     51         
     52        NLS::setCharset('UTF-8'); 
    5153    } 
    5254     
     
    9698    public static function shutdown() 
    9799    { 
    98         if (isset($_SESSION['__auth'])) { 
    99             // unset auth data from session. no need to store it persistantly 
     100        // unset auth data from session. no need to store it persistantly 
     101        if (isset($_SESSION['__auth'])) 
    100102            unset($_SESSION['__auth']); 
    101              
    102             // FIXME: remove strange numeric entries 
    103             foreach ($_SESSION as $key => $val) { 
    104                 if (!$val && is_numeric($key)) 
    105                     unset($_SESSION[$key]); 
    106             } 
    107         } 
    108103    } 
    109104} 
Note: See TracChangeset for help on using the changeset viewer.