summaryrefslogtreecommitdiff
path: root/json.php
diff options
context:
space:
mode:
authorChristoph Brill <egore911@egore911.de>2012-03-17 20:44:27 +0100
committerChristoph Brill <egore911@egore911.de>2012-03-26 00:17:35 +0200
commit7d3a9d19076f419a4a07f3813895ba7c75430c3a (patch)
tree4a2088994b9667bd318fb1ee923b1229d477a469 /json.php
parente26b397e950e427eb55b01fa3fae9133f07e6f2f (diff)
Typo
Diffstat (limited to 'json.php')
-rw-r--r--json.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/json.php b/json.php
index 63125d9..722d4aa 100644
--- a/json.php
+++ b/json.php
@@ -19,6 +19,10 @@ if (!isset($_GET['date'])) {
$_GET['date'] = 'today';
}
+if (!isset($_GET['mode'])) {
+ $_GET['mode'] = '';
+}
+
require_once('common.inc.php');
// Read all lines of the log into an array
@@ -131,4 +135,4 @@ switch ($_GET['mode']) {
break;
}
-echo json_encode($retval); \ No newline at end of file
+echo json_encode($retval);