Do not do any logging if it's disabled

This commit is contained in:
Mark Schouten 2016-08-05 12:20:19 +02:00
parent a91d91baa4
commit 3fd525748f
3 changed files with 19 additions and 3 deletions

View file

@ -23,6 +23,10 @@ if (!isset($_GET['action'])) {
switch ($_GET['action']) {
case "list":
global $logging;
if ($logging !== TRUE)
jtable_respond(null, 'error', 'Logging is disabled');
jtable_respond(getlogs());
break;