diff options
author | alecpl <alec@alec.pl> | 2008-06-23 09:27:45 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-06-23 09:27:45 +0000 |
commit | 3e84834f48eb228bd89ea77cbc404191d7d0c788 (patch) | |
tree | d937a92ad298b0e0ad72e695550ff3602e0b8b93 | |
parent | ad572a1f2e4d28395a996037365923db67c19b17 (diff) |
- fixed get_sequence_name()
-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; |