thomascube
2008-05-18 26539d5f9957b95d63f607ed8359f586a03f4651
program/include/main.inc
@@ -69,14 +69,23 @@
 */
function get_sequence_name($sequence)
  {
  global $CONFIG;
  // return table name if configured
  $config_key = 'db_sequence_'.$sequence;
  $opt = rcmail::get_instance()->config->get($config_key);
  if (strlen($CONFIG[$config_key]))
    return $CONFIG[$config_key];
  if (!empty($opt))
    {
    $db = &rcmail::get_instance()->db;
    if($db->db_provider=='pgsql') // just for sure
      {
      $db->db_handle->setOption('disable_smart_seqname', true);
      $db->db_handle->setOption('seqname_format', '%s');
      }
    return $CONFIG[$opt];
    }
  return $sequence;
  }
@@ -602,7 +611,7 @@
      {
      $zebra_class = $c%2 ? 'even' : 'odd';
      $table .= sprintf('<tr id="rcmrow%d" class="contact '.$zebra_class.'">'."\n", $row_data[$id_col]);
      $table .= sprintf('<tr id="rcmrow%s" class="contact '.$zebra_class.'">'."\n", $row_data[$id_col]);
      // format each col
      foreach ($a_show_cols as $col)