Ignore:
Timestamp:
09/25/09 15:01:57 (15 years ago)
Author:
viani
Message:

Ticket #637 - Inclusao de variavel de sessao para funcionar o Voip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.bo_userinterface.inc.php

    r1451 r1452  
    11151115                $voip_enabled = false; 
    11161116                $voip_groups = array(); 
    1117                 if ( $GLOBALS['phpgw_info']['server']['voip_groups'] ) 
    1118                 { 
    1119                         foreach ( explode(",",$GLOBALS['phpgw_info']['server']['voip_groups']) as $i => $voip_group ) 
     1117                if ( $_SESSION['phpgw_info']['workflow']['voip_groups'] ) 
     1118                { 
     1119                        foreach ( explode(",",$_SESSION['phpgw_info']['workflow']['voip_groups']) as $i => $voip_group ) 
    11201120                        { 
    11211121                                $a_voip = explode(";",$voip_group); 
     
    11231123                        } 
    11241124 
    1125                         foreach($GLOBALS['phpgw']->accounts->membership() as $idx => $group) 
     1125                        foreach($_SESSION['phpgw_info']['workflow']['user_groups'] as $idx => $group) 
    11261126                        { 
    1127                                 if(array_search($group['account_name'],$voip_groups) !== FALSE) 
     1127                                if(array_search($group,$voip_groups) !== FALSE) 
    11281128                                { 
    11291129                                        $voip_enabled = true; 
Note: See TracChangeset for help on using the changeset viewer.