From 38b790c82de719148366b8c42f614f3495c6e38a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 27 Oct 2017 18:17:07 +0200 Subject: [PATCH] Fixed log for SATS (or if no TreeToken received) --- public_html/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public_html/index.php b/public_html/index.php index ce1ae76..757f78f 100755 --- a/public_html/index.php +++ b/public_html/index.php @@ -156,6 +156,8 @@ $R->post('api(?:(/.*))/?', function($url){ if( isset($_SERVER['HTTP_X_TREE_TOKEN']) ) $GLOBALS['page_log']->log('api.call('.$_SERVER['HTTP_X_TREE_TOKEN'].')'); + else + $GLOBALS['page_log']->log('api.call(NO_TOKEN)'); header('Content-Type: application/json; charset=UTF-8');