mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Fix for getting last identity insert.
This commit is contained in:
parent
522dee7c77
commit
fa6dca2248
@ -282,12 +282,7 @@ class db
|
||||
if (!$result)
|
||||
return -1;
|
||||
|
||||
$Record = @mssql_fetch_row(0);
|
||||
@mssql_free_result($result);
|
||||
if (!is_array($Record)) /* no identity? */
|
||||
return -1;
|
||||
|
||||
return $Record[0];
|
||||
return mssql_result($result, 0, 0);
|
||||
}
|
||||
|
||||
function lock($table, $mode="write")
|
||||
|
Loading…
Reference in New Issue
Block a user