Insert_ID -> lastInsertId

This commit is contained in:
Shish
2010-12-31 20:00:56 +00:00
parent d90016b932
commit ffb1762280
4 changed files with 4 additions and 4 deletions

View File

@ -451,7 +451,7 @@ class CommentList extends SimpleExtension {
"INSERT INTO comments(image_id, owner_id, owner_ip, posted, comment) ".
"VALUES(?, ?, ?, now(), ?)",
array($image_id, $user->id, $_SERVER['REMOTE_ADDR'], $comment));
$cid = $database->db->Insert_ID();
$cid = $database->db->lastInsertId();
log_info("comment", "Comment #$cid added to Image #$image_id");
}
}