]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correct typo in last_insert_id for calendar and pg fix #oc-731
authorBrice Maron <brice@bmaron.net>
Mon, 28 May 2012 20:41:39 +0000 (20:41 +0000)
committerBrice Maron <brice@bmaron.net>
Mon, 28 May 2012 20:41:39 +0000 (20:41 +0000)
apps/calendar/lib/calendar.php

index 1d0085080409cfebc13b4e072642c67c55979d1f..869b35e2e1b180a62145303e0720a91ff3e5bc6f 100644 (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');
        }
 
        /**