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

This commit is contained in:
Brice Maron 2012-05-28 20:41:39 +00:00
parent 817f9ff57d
commit 22cd0f1cda
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}
/**