diff --git a/html/index.php b/html/index.php
index 43c869f59a..a7baf36ae9 100755
--- a/html/index.php
+++ b/html/index.php
@@ -338,7 +338,7 @@ toastr.options.extendedTimeOut = 20;
echo("");
}
-if (is_array($sql_debug) && is_array($php_debug)) {
+if (is_array($sql_debug) && is_array($php_debug) && $_SESSION['authenticated'] === TRUE) {
include_once "includes/print-debug.php";