mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-07-21 19:23:32 +03:00
Do not do any logging if it's disabled
This commit is contained in:
parent
a91d91baa4
commit
3fd525748f
3 changed files with 19 additions and 3 deletions
4
logs.php
4
logs.php
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue