Ignore:
Timestamp:
Apr 29, 2010 7:15:02 AM (3 years ago)
Author:
alec
Message:
  • code re-formatting + small improvements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_contacts.php

    r3562 r3576  
    227227            if ($col == 'ID' || $col == $this->primary_key) { 
    228228                $ids         = !is_array($value) ? explode(',', $value) : $value; 
    229                 $ids         = join(',', array_map(array($this->db, 'quote'), $ids)); 
     229                $ids         = $this->db->array2list($ids, 'integer'); 
    230230                $add_where[] = 'c.' . $this->primary_key.' IN ('.$ids.')'; 
    231231            } 
     
    438438            $ids = explode(',', $ids); 
    439439 
    440         $ids = join(',', array_map(array($this->db, 'quote'), $ids)); 
     440        $ids = $this->db->array2list($ids, 'integer'); 
    441441 
    442442        // flag record as deleted 
     
    590590            $ids = explode(',', $ids); 
    591591 
    592         $ids = join(',', array_map(array($this->db, 'quote'), $ids)); 
    593      
     592        $ids = $this->db->array2list($ids, 'integer'); 
     593 
    594594        $sql_result = $this->db->query( 
    595595            "DELETE FROM ".get_table_name('contactgroupmembers'). 
Note: See TracChangeset for help on using the changeset viewer.