Ignore:
Timestamp:
Jun 22, 2009 2:32:51 PM (4 years ago)
Author:
alec
Message:
  • performance improvements of messages caching
File:
1 edited

Legend:

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

    r2463 r2673  
    471471 
    472472  /** 
     473   * Return list of elements for use with SQL's IN clause 
     474   * 
     475   * @param  string Input array 
     476   * @return string Elements list string 
     477   * @access public 
     478   */ 
     479  function array2list($arr, $type=null) 
     480    { 
     481    if (!is_array($arr)) 
     482      return $this->quote($arr, $type); 
     483     
     484    $res = array(); 
     485    foreach ($arr as $item) 
     486      $res[] = $this->quote($item, $type); 
     487 
     488    return implode(',', $res); 
     489    } 
     490 
     491 
     492  /** 
    473493   * Return SQL statement to convert a field value into a unix timestamp 
    474494   * 
Note: See TracChangeset for help on using the changeset viewer.