Skip to content
Snippets Groups Projects
Commit d1f0261b authored by Brice Maron's avatar Brice Maron
Browse files

Correct typo in last_insert_id for calendar and pg fix #oc-731

parent 2f8412de
Branches
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ class OC_Calendar_Calendar{
$stmt = OCP\DB::prepare( 'INSERT INTO *PREFIX*calendar_calendars (userid,displayname,uri,ctag,calendarorder,calendarcolor,timezone,components) VALUES(?,?,?,?,?,?,?,?)' );
$result = $stmt->execute(array($userid,$name,$uri,1,$order,$color,$timezone,$components));
return OCP\DB::insertid('*PREFIX*calendar_calendar');
return OCP\DB::insertid('*PREFIX*calendar_calendars');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment