initial setup pages
[gwvp.git] / gwvplib / gwvpdebug.php
index cd3c86f..c580ad1 100644 (file)
@@ -6,6 +6,8 @@ $MENU_ITEMS["999debug"]["link"] = "$BASE_URL/debug";
 
 function gwvp_DebugEnabled()
 {
+       global $BASE_URL;
+       
        echo "<pre>";
        echo "BASEURL: $BASE_URL\n";
        echo "CUSTOM\n";
@@ -14,7 +16,11 @@ function gwvp_DebugEnabled()
        echo "\n\n\nrequest\n";
        print_r($_REQUEST);
        echo "\n\n\nsession\n";
-       print_r($_SESSION);
+       if(isset($_SESSION)) {
+               print_r($_SESSION);
+       } else {
+               echo "No session data";
+       }
        
        
        echo "</pre>";