From df33d4ebf987bf560d87e855c71703d0c9504134 Mon Sep 17 00:00:00 2001
From: David Pesce <davidpesce@gmail.com>
Date: Mon, 12 Jun 2017 12:20:21 -0400
Subject: [PATCH] correct fix for admin setting to include all events by
 default

---
 settings.php | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/settings.php b/settings.php
index c58d5a6..12c0251 100644
--- a/settings.php
+++ b/settings.php
@@ -59,15 +59,13 @@ if ($hassiteconfig) {
         get_string('filters_help', 'logstore_xapi')));
 
     $settings->add(new admin_setting_configcheckbox('logstore_xapi/logguests',
-        get_string('logguests',
-        'logstore_xapi'), '', '0'));
+        get_string('logguests', 'logstore_xapi'), '', '0'));
 
     $menu_routes = array();
     $routes = translator_controller::$routes;
     foreach (array_keys($routes) as $route_key) $menu_routes[$route_key] = $route_key;
 
     $settings->add(new admin_setting_configmulticheckbox('logstore_xapi/routes',
-        get_string('routes',
-        'logstore_xapi'), '', '1', $menu_routes));
+        get_string('routes', 'logstore_xapi'), '', $menu_routes, $menu_routes));
 
 }
-- 
GitLab