Ignore:
Timestamp:
06/11/11 16:42:10 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #2006 - Incluir Contato Compartilhado duplicado

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/contactcenter/inc/class.so_group.inc.php

    r4444 r4599  
    370370                        return $return; 
    371371                }                
    372                  
     372 
     373                function verifySharedContact($owner,$email) 
     374                { 
     375                        $query = 'select A.names_ordered, C.id_connection from phpgw_cc_contact A,'. 
     376                        'phpgw_cc_contact_conns B, phpgw_cc_connections C where '. 
     377                        'A.id_contact = B.id_contact and B.id_connection = C.id_connection '. 
     378                        'and B.id_typeof_contact_connection = 1 and '. 
     379                        'A.id_owner ='.$owner.' and C.connection_value = \''.$email.'\''; 
     380 
     381                        if (!$this->db->query($query)) 
     382                        { 
     383                                exit ('Query failed! File: '.__FILE__.' on line'.__LINE__); 
     384                        } 
     385 
     386                        $return = false; 
     387 
     388                        while($this->db->next_record()) 
     389                        { 
     390                                $row = $this->db->row(); 
     391                                $return[] =  $row['names_ordered']; 
     392                                $return[] =  $row['id_connection']; 
     393                        } 
     394 
     395                        return $return; 
     396                } 
     397 
    373398                function selectContactsByGroup($idGroup) 
    374399                { 
Note: See TracChangeset for help on using the changeset viewer.