Skip to content
Snippets Groups Projects
Commit 517bd289 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Corrected typos.

parent 826a439c
Branches
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ switch($idtype){ ...@@ -13,7 +13,7 @@ switch($idtype){
case 'event': case 'event':
break; break;
default: default:
OCP\JSON::error(array('message'=>'unexspected parameter')); OCP\JSON::error(array('message'=>'unexpected parameter'));
exit; exit;
} }
if($idtype == 'calendar' && !OC_Calendar_App::getCalendar($id)){ if($idtype == 'calendar' && !OC_Calendar_App::getCalendar($id)){
...@@ -32,7 +32,7 @@ switch($sharetype){ ...@@ -32,7 +32,7 @@ switch($sharetype){
case 'public': case 'public':
break; break;
default: default:
OCP\JSON::error(array('message'=>'unexspected parameter')); OCP\JSON::error(array('message'=>'unexpected parameter'));
exit; exit;
} }
if($sharetype == 'user' && !OCP\User::userExists($sharewith)){ if($sharetype == 'user' && !OCP\User::userExists($sharewith)){
...@@ -44,7 +44,7 @@ if($sharetype == 'group' && !OC_Group::groupExists($sharewith)){ ...@@ -44,7 +44,7 @@ if($sharetype == 'group' && !OC_Group::groupExists($sharewith)){
exit; exit;
} }
if($sharetype == 'user' && OCP\USER::getUser() == $sharewith){ 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)); $success = OC_Calendar_Share::share(OCP\USER::getUser(), $sharewith, $sharetype, $id, (($idtype=='calendar') ? OC_Calendar_Share::CALENDAR : OC_Calendar_Share::EVENT));
if($success){ if($success){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment