diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/include/main.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index c4ea73e38..d75921f3a 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -76,8 +76,9 @@ function get_sequence_name($sequence) if (!empty($opt)) { $db = &rcmail::get_instance()->db; - - if ($db->db_provider=='pgsql' && is_a($db, 'rcube_mdb2')) + $dbclass = 'rcube_mdb2'; + + if ($db->db_provider=='pgsql' && ($db instanceof $dbclass)) { $db->db_handle->setOption('disable_smart_seqname', true); $db->db_handle->setOption('seqname_format', '%s'); |