alecpl
2009-07-20 6955c70f286dee3d003736c911ad9d3203b0be6c
- handle errors in insert_id()


1 files modified
4 ■■■ changed files
program/include/rcube_mdb2.php 4 ●●● patch | view | raw | blame | history
program/include/rcube_mdb2.php
@@ -330,7 +330,9 @@
    if (!$this->db_handle || $this->db_mode=='r')
      return FALSE;
    return $this->db_handle->lastInsertID($sequence);
    $id = $this->db_handle->lastInsertID($sequence);
    return $this->db_handle->isError($id) ? null : $id;
    }