Changeset 2673 in subversion for trunk/roundcubemail/program/include/rcube_mdb2.php
- Timestamp:
- Jun 22, 2009 2:32:51 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/include/rcube_mdb2.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_mdb2.php
r2463 r2673 471 471 472 472 /** 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 /** 473 493 * Return SQL statement to convert a field value into a unix timestamp 474 494 *
Note: See TracChangeset
for help on using the changeset viewer.
