diff options
Diffstat (limited to 'apps/calendar/ajax/deleteevent.php')
-rw-r--r-- | apps/calendar/ajax/deleteevent.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/calendar/ajax/deleteevent.php b/apps/calendar/ajax/deleteevent.php index 08a0e1a1e26..a6750267bd2 100644 --- a/apps/calendar/ajax/deleteevent.php +++ b/apps/calendar/ajax/deleteevent.php @@ -17,14 +17,14 @@ $id = $_POST['id']; $data = OC_Calendar_Object::find($id); if (!$data) { - echo json_encode(array('status'=>'error')); + OC_JSON::error(); exit; } $calendar = OC_Calendar_Calendar::findCalendar($data['calendarid']); if($calendar['userid'] != OC_User::getUser()){ - echo json_encode(array('status'=>'error')); + OC_JSON::error(); exit; } $result = OC_Calendar_Object::delete($id); -echo json_encode(array('status' => 'success')); +OC_JSON::success(); ?> |