浏览代码

[Debug] Show errors

Foppe Hemminga 5 年之前
父节点
当前提交
dd691e2f70
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      index.php

+ 2 - 1
index.php

@@ -96,6 +96,7 @@ if ( $action == 'r' ) {
     // If remove then ask verification first
     $screen = 4;
 }
+
 if ( $action == 'x' ) {
     // Request to remove player
     $maintainer = delete_player( $_REQUEST['player'] );
@@ -140,13 +141,13 @@ assert( '$screen >= 0', "By now \$screen should be set to a value >= 0." );
                   $screen = 0;
               }
               // Choose or add a maintainer; default screen
-              print( "<pre>${screen}</pre>" );
               print( $snippets[$screen] );
               ?>
           </div>
 		  <div class="col-md">
               <pre>
                   <?php
+                  print( "\$screen: ${screen}" );
                   print_r( $_REQUEST );
                   ?>
               </pre>