Ignore:
Timestamp:
Jun 30, 2008 6:21:39 AM (5 years ago)
Author:
alec
Message:
  • deprecated is_a() replaced by instanceof operator
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r1567 r1582  
    7777    { 
    7878    $db = &rcmail::get_instance()->db; 
    79  
    80     if ($db->db_provider=='pgsql' && is_a($db, 'rcube_mdb2')) 
     79    $dbclass = 'rcube_mdb2'; 
     80     
     81    if ($db->db_provider=='pgsql' && ($db instanceof $dbclass)) 
    8182      { 
    8283      $db->db_handle->setOption('disable_smart_seqname', true); 
Note: See TracChangeset for help on using the changeset viewer.