summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/ogagent.php
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-01-21 11:20:27 +0100
committerRamón M. Gómez <ramongomez@us.es>2019-01-21 11:20:27 +0100
commit1985678d44b366a1b98107241c3ae6e059a67499 (patch)
tree5518060d714c1c826f14afc143749eb224ca4b7d /admin/WebConsole/rest/ogagent.php
parentde61ab6731b56c05ef2e0675b44e6a8b718118b2 (diff)
#834: Check for more variable definitions and continue code cleanup.
Diffstat (limited to 'admin/WebConsole/rest/ogagent.php')
-rw-r--r--admin/WebConsole/rest/ogagent.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/WebConsole/rest/ogagent.php b/admin/WebConsole/rest/ogagent.php
index 6b87b098..76cfd00a 100644
--- a/admin/WebConsole/rest/ogagent.php
+++ b/admin/WebConsole/rest/ogagent.php
@@ -32,6 +32,7 @@ function writeLog($message = "") {
$app->post('/ogagent/started',
function() use ($app) {
global $cmd;
+ $secret = "";
$osType = $osVersion = "none";
try {
// Reading POST parameters in JSON format.
@@ -131,6 +132,7 @@ $app->post('/ogagent/stopped',
$app->post('/ogagent/loggedin',
function() use ($app) {
global $cmd;
+ $osType = $osVersion = "none";
$redirto = Array();
$result = Array();