diff --git a/src/meetingtracker.php b/src/meetingtracker.php index 69c204fc9..d5bbf85ed 100644 --- a/src/meetingtracker.php +++ b/src/meetingtracker.php @@ -1,6 +1,6 @@ true, "conference" => $url, - "tracker_status" => self::tracker_status($tracker), - "tracker_status_at" => $tracker->position_at]; + $j = [ + "ok" => true, + "conference" => $url, + "tracker_status" => self::tracker_status($tracker), + "tracker_status_at" => $tracker->position_at + ]; if ($pids) { $j["pulse"] = true; } @@ -120,11 +123,10 @@ static function contact_tracker_comet(Conf $conf, $pids = null) { $comet_url .= "/"; } - $context = stream_context_create(array("http" => - array("method" => "GET", - "ignore_errors" => true, - "content" => "", - "timeout" => 1.0))); + $context = stream_context_create(["http" => [ + "method" => "GET", "ignore_errors" => true, + "content" => "", "timeout" => 1.0 + ]]); $comet_url .= "update?conference=" . urlencode($url) . "&tracker_status=" . urlencode(self::tracker_status($tracker)) . "&tracker_status_at=" . $tracker->position_at; @@ -668,7 +670,7 @@ static private function trinfo_papers($tis, $trs, Contact $user) { foreach ($tis as $ti_index => $ti) { $papers = []; - foreach (isset($ti->papers) ? $ti->papers : [] as $pid) { + foreach ($ti->papers ?? [] as $pid) { $prow = $prows->get($pid); $papers[] = $p = (object) []; if (($track_manager