summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-06-23 09:27:45 +0000
committeralecpl <alec@alec.pl>2008-06-23 09:27:45 +0000
commit3e84834f48eb228bd89ea77cbc404191d7d0c788 (patch)
treed937a92ad298b0e0ad72e695550ff3602e0b8b93
parentad572a1f2e4d28395a996037365923db67c19b17 (diff)
- fixed get_sequence_name()
-rw-r--r--program/include/main.inc6
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;