case 'event':
break;
default:
- OCP\JSON::error(array('message'=>'unexspected parameter'));
+ OCP\JSON::error(array('message'=>'unexpected parameter'));
exit;
}
if($idtype == 'calendar' && !OC_Calendar_App::getCalendar($id)){
case 'public':
break;
default:
- OCP\JSON::error(array('message'=>'unexspected parameter'));
+ OCP\JSON::error(array('message'=>'unexpected parameter'));
exit;
}
if($sharetype == 'user' && !OCP\User::userExists($sharewith)){
exit;
}
if($sharetype == 'user' && OCP\USER::getUser() == $sharewith){
- OCP\JSON::error(array('meesage'=>'you can not share with yourself'));
+ OCP\JSON::error(array('message'=>'you can not share with yourself'));
}
$success = OC_Calendar_Share::share(OCP\USER::getUser(), $sharewith, $sharetype, $id, (($idtype=='calendar') ? OC_Calendar_Share::CALENDAR : OC_Calendar_Share::EVENT));
if($success){