Ignore:
Timestamp:
Jul 20, 2009 7:12:33 AM (4 years ago)
Author:
alec
Message:
  • handle errors in insert_id()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_mdb2.php

    r2719 r2772  
    331331      return FALSE; 
    332332 
    333     return $this->db_handle->lastInsertID($sequence); 
     333    $id = $this->db_handle->lastInsertID($sequence); 
     334     
     335    return $this->db_handle->isError($id) ? null : $id; 
    334336    } 
    335337 
Note: See TracChangeset for help on using the changeset viewer.