Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
Handling Undefined index and facilitator
Browse files Browse the repository at this point in the history
  • Loading branch information
etsy-suren committed May 30, 2018
1 parent 0579ba1 commit b901ed0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions features/calendar/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ function __construct() {
$this->apiKey = $config['apiKey'];
$this->scopes = $config['scopes'];
$this->id = $config['id'];
$this->override_calendar_link = $config['override_calendar_link'];
$this->override_calendar_link_href = $config['override_calendar_link_href'];
$this->override_calendar_link_description = $config['override_calendar_link_description'];
$this->override_calendar_link = array_key_exists('override_calendar_link', $config) ? $config['override_calendar_link']: '';
$this->override_calendar_link_href = array_key_exists('override_calendar_link_href', $config) ? $config['override_calendar_link_href']: '';
$this->override_calendar_link_description = array_key_exists('override_calendar_link_description', $config) ? $config['override_calendar_link_description'] : '';
$this->facilitator = $config['facilitator'];
if (isset($config['attendees_email'])) {
if (!is_array($config['attendees_email'])) {
Expand Down
4 changes: 4 additions & 0 deletions htdocs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ function default_status_time() {
"why_surprised" => "",
"tldr" => "",
"meeting_notes_link" => "",
"facilitator" => "",
"starttime" => $startdate->getTimeStamp(),
"endtime" => $enddate->getTimeStamp(),
"statustime" => $statusdate->getTimeStamp(),
Expand All @@ -213,6 +214,9 @@ function default_status_time() {
);

$event = Postmortem::save_event($event);
if(isset($event['error'])) {
error_log(print_r($event,true));
}
$app->redirect('/events/'.$event["id"]);
});

Expand Down

0 comments on commit b901ed0

Please sign in to comment.