Ignore:
Timestamp:
04/06/10 10:37:01 (14 years ago)
Author:
amuller
Message:

Ticket #1026 - Fechando a sessão em cada requisição do inicio do expressoMail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.db_functions.inc.php

    r2416 r2427  
    220220         
    221221        function get_dropdown_contacts(){ 
    222                  
     222 
     223                $number_of_contacts = $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['number_of_contacts']; 
     224                $use_dynamic_contacts = $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts'];  
     225                // Free others requests 
     226                session_write_close(); 
     227 
    223228                $contacts = $this -> get_cc_contacts(); 
    224229                $groups = $this -> get_cc_groups(); 
     
    233238                        $stringDropDownContacts = $groups; 
    234239                                         
    235                 if($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['number_of_contacts'] && 
    236                         $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts']) { 
    237                                  
    238                         // Free others requests 
    239                         session_write_close(); 
     240                if($number_of_contacts && $use_dynamic_contacts) { 
    240241                        $dynamic_contact = new dynamic_contacts(); 
    241242                        $dynamic = $dynamic_contact->dynamic_contact_toString(); 
Note: See TracChangeset for help on using the changeset viewer.