Ignore:
Timestamp:
01/13/09 18:25:19 (15 years ago)
Author:
niltonneto
Message:

Corrigido condicional com array_search.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/inc/class.contacts_im.inc.php

    r558 r598  
    2727 
    2828        public final function getParticipantsExternal() 
    29         { 
     29        {                
    3030                if( !$this->groupsLocked() && $_SESSION['phpgw_info']['jabberit_messenger']['use_external_participants_jabberit'] )              
    3131                        return "true"; 
     
    4141                foreach($_SESSION['phpgw_info']['jabberit_messenger']['membership'] as $tmp) 
    4242                        $memberShip[] = $tmp['account_name']; 
    43  
     43                 
    4444                foreach($groupsLocked as $tmp) 
    4545                { 
    4646                        $groups = explode(":", $tmp); 
    47                         if( array_search($groups[1], $memberShip) ) 
     47                        if( array_search($groups[1], $memberShip) !== False) 
    4848                                return true; 
    4949                } 
Note: See TracChangeset for help on using the changeset viewer.