From 87242c75aa33a72e8ae7d33d36fa763f46051173 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 30 Jun 2008 10:21:39 +0000 Subject: [PATCH] - deprecated is_a() replaced by instanceof operator --- program/include/main.inc | 5 +++-- 1 file 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');