diff options
author | alecpl <alec@alec.pl> | 2008-06-30 10:21:39 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-06-30 10:21:39 +0000 |
commit | 87242c75aa33a72e8ae7d33d36fa763f46051173 (patch) | |
tree | 7c5583b80b0efec0439cdfadb4d46ec368c06117 /program/include/main.inc | |
parent | 0a5e6a5454fb6a98626bce37a6b489b787227aa1 (diff) |
- deprecated is_a() replaced by instanceof operator
Diffstat (limited to 'program/include/main.inc')
-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'); |