Commit bd88dbf5 by Jason Jordan

clean up undefined variable errors, exposed by analytics recording

parent b4fcf94d
......@@ -259,6 +259,7 @@ class WebUI implements \snac\interfaces\ServerInterface {
// Workflow: Handle user commands, perform actions
// *************************************************
$response = "";
switch($this->input["command"]) {
......
......@@ -4091,7 +4091,7 @@ class WebUIExecutor {
*/
public function recordAnalytics($input) {
$request = ["command" => "analytics"];
$request["icid"] = $input["icid"];
$request["icid"] = isset($input["icid"]) ? $input["icid"] : "";
$request["url"] = $input["url"];
$request["repo_ic_id"] = $input["repo_ic_id"];
$this->connect->query($request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment