=== program/include/rcube_db.inc
==================================================================
--- program/include/rcube_db.inc	(revision 645)
+++ program/include/rcube_db.inc	(local)
@@ -293,6 +293,7 @@
       {
       case 'pgsql':
         $result = &$this->db_handle->getOne("SELECT CURRVAL('$sequence')");
+	return $result;
         
       case 'mssql':
        	$result = &$this->db_handle->getOne("SELECT @@IDENTITY");
@@ -576,4 +577,5 @@
 
   }  // end class rcube_db
 
-?>
\ No newline at end of file
+?>
+
