summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-30 10:21:39 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-30 10:21:39 +0000
commitd112710d4745b80f39e76f72c2f6fcc25c5d4477 (patch)
tree3f18392dd83f1e0f0284e9fc486e35546cbdd634
parentfbaf5fbf954b37e5522bc69092a969c7421cdc15 (diff)
- deprecated is_a() replaced by instanceof operator
git-svn-id: https://svn.roundcube.net/trunk@1582 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/main.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc
index c4ea73e38..d75921f3a 100644
--- a/roundcubemail/program/include/main.inc
+++ b/roundcubemail/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');