Ignore:
Timestamp:
12/10/12 10:17:26 (11 years ago)
Author:
cristiano
Message:

Ticket #3209 - Retirado configurações estaticas, comandos desnecessarios do conctactProvider

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zpush/backend/expresso/providers/contactProvider.php

    r7589 r7631  
    134134        $ids = array(); 
    135135        try { 
    136             $result = pg_query($this->db,"BEGIN;"); 
    137136            if ($result == FALSE) throw new Exception(pg_last_error($this->db)); 
    138137            $result = pg_query($this->db, "select given_names, family_names, last_update, id_contact from phpgw_cc_contact where id_owner = " . $this->_uidnumber . ";"); 
     
    145144                $messages[] = $message; 
    146145            } 
    147             $result = pg_query($this->db,"COMMIT;"); 
    148146            if ($result == FALSE) throw new Exception(pg_last_error($this->db)); 
    149147        } catch (Exception $e) { 
    150             pg_query($this->db,"ROLLBACK;"); 
    151148       //     debugLog("exception -> " . $e->getMessage() . " - ARQUIVO: " . $e->getFile() . " - LINHA: " . $e->getLine()); 
    152149        } 
     
    176173        $message = new SyncContact(); 
    177174        try { 
    178             $result = pg_query($this->db,"BEGIN;"); 
    179             if ($result == FALSE) throw new Exception(pg_last_error($this->db)); 
    180175            $result_contact = pg_query($this->db, "select id_contact, id_owner, id_status, photo, alias, id_prefix, given_names, family_names, names_ordered, id_suffix, birthdate, sex, pgp_key, notes, is_global, last_status, last_update, category, web_page, corporate_name, job_title, department from phpgw_cc_contact where id_contact = " . $id . ";"); 
    181176            if ($result_contact == FALSE) throw new Exception(pg_last_error($this->db)); 
     
    363358                } 
    364359            } 
    365             $result = pg_query($this->db,"COMMIT;"); 
    366             if ($result == FALSE) throw new Exception(pg_last_error($this->db)); 
    367360        } catch (Exception $e) { 
    368             pg_query($this->db,"ROLLBACK;"); 
    369361            debugLog("exception -> " . $e->getMessage() . " - ARQUIVO: " . $e->getFile() . " - LINHA: " . $e->getLine()); 
    370362            return; 
Note: See TracChangeset for help on using the changeset viewer.