ICS
This commit is contained in:
@@ -22,8 +22,7 @@ class ApiController extends AbstractController
|
||||
|
||||
$ics = new icsService();
|
||||
$ics->debug(false);
|
||||
|
||||
|
||||
|
||||
$content=$ics->writeheader();
|
||||
|
||||
$events=$em->getRepository("App:Event")->findBy(["user"=>$user]);
|
||||
|
@@ -29,7 +29,9 @@ class icsService
|
||||
public function set($key, $val = false) {
|
||||
if (is_array($key)) {
|
||||
foreach ($key as $k => $v) {
|
||||
if(is_null($v)||$v=="") unset( $this->properties[$k]);
|
||||
if($k=="allday"&&(is_null($v)||$v=="")) $v=0;
|
||||
|
||||
if($k!="allday"&&(is_null($v)||$v=="")) unset( $this->properties[$k]);
|
||||
else $this->set($k, $v);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user