with the good code in place, the bad code can go

This commit is contained in:
Shish 2012-02-09 14:29:42 +00:00
parent 3291e0c302
commit 82f2d10f75

View File

@ -340,7 +340,6 @@ class Pools extends Extension {
VALUES (:uid, :public, :title, :desc, now())",
array("uid"=>$user->id, "public"=>$public, "title"=>$_POST["title"], "desc"=>$_POST["description"]));
//$result = $database->get_row("SELECT LAST_INSERT_ID() AS poolID"); # FIXME database specific?
$result['poolID'] = $database->get_last_insert_id();
log_info("pools", "Pool {$result["poolID"]} created by {$user->name}");