"ERROR", "msg" => $Strings->get("invalid parameters", false)])); } try { Notifications::read($user, $VARS['id']); sendJsonResp(); } catch (Exception $ex) { sendJsonResp($ex->getMessage(), "ERROR"); }