summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-05-28 20:41:39 +0000
committerBrice Maron <brice@bmaron.net>2012-05-28 20:57:52 +0000
commitd1f0261b5da3179acb0bc67c1fdd479b3deb37bc (patch)
tree4e81ef67e855bcf0a76458251288fb8874e47b65
parent2f8412defc6e6adb3dee4ea81f450176a36527b2 (diff)
downloadnextcloud-server-d1f0261b5da3179acb0bc67c1fdd479b3deb37bc.tar.gz
nextcloud-server-d1f0261b5da3179acb0bc67c1fdd479b3deb37bc.zip
Correct typo in last_insert_id for calendar and pg fix #oc-731
-rw-r--r--apps/calendar/lib/calendar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/calendar/lib/calendar.php b/apps/calendar/lib/calendar.php
index 1d008508040..869b35e2e1b 100644
--- a/apps/calendar/lib/calendar.php
+++ b/apps/calendar/lib/calendar.php
@@ -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');
}
/**