diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-09-16 17:06:57 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-09-16 17:06:57 +0200 |
commit | 45d42a96549e8661bb18c5f8d407641d5362240a (patch) | |
tree | ef958463d66b752ba30549ef7252bd003eea83b6 /apps/calendar/ajax/editevent.php | |
parent | 73d3dc91fdcd106eedb73caa1f970b59f2814c71 (diff) | |
download | nextcloud-server-45d42a96549e8661bb18c5f8d407641d5362240a.tar.gz nextcloud-server-45d42a96549e8661bb18c5f8d407641d5362240a.zip |
Move validateEventForm function and fix success handling
Diffstat (limited to 'apps/calendar/ajax/editevent.php')
-rw-r--r-- | apps/calendar/ajax/editevent.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/ajax/editevent.php b/apps/calendar/ajax/editevent.php index d8dae7a324b..aef2e6f78b4 100644 --- a/apps/calendar/ajax/editevent.php +++ b/apps/calendar/ajax/editevent.php @@ -24,7 +24,7 @@ if(!OC_USER::isLoggedIn()) { $errarr = OC_Calendar_Object::validateRequest($_POST); if($errarr){ //show validate errors - $errarr["error"] = "true"; + $errarr['status'] = 'error'; echo json_encode($errarr); exit; }else{ @@ -48,6 +48,6 @@ if($errarr){ $calendar = OC_Calendar_Calendar::findCalendar($request['calendar']); OC_Calendar_Object::moveToCalendar($id, $cal); } - echo json_encode(array("success"=>"true")); + echo json_encode(array('status' => 'success')); } ?> |