diff options
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/main.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index d84ca896a..c4ea73e38 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -77,13 +77,13 @@ function get_sequence_name($sequence) { $db = &rcmail::get_instance()->db; - if($db->db_provider=='pgsql') // just for sure + if ($db->db_provider=='pgsql' && is_a($db, 'rcube_mdb2')) { $db->db_handle->setOption('disable_smart_seqname', true); $db->db_handle->setOption('seqname_format', '%s'); - } + } - return $CONFIG[$opt]; + return $opt; } return $sequence; |