diff --git a/api.php b/api.php
index abec091bc305f7013f398da296c4cdb65c044a43..d3c51a9a7ce65fab618d167c4fbbb778c45ecae8 100644
--- a/api.php
+++ b/api.php
@@ -339,7 +339,7 @@ foreach ($testCases as $test) {
             require_once './do_compileTest_func.php';
 
             $showTestRunnerDebugOutput = FALSE;
-            if (isset($config['maxLinesToRead'])) {
+            if (isset($config['showTestRunnerDebugOutput'])) {
                 $showTestRunnerDebugOutput = $config['showTestRunnerDebugOutput'];
             }
 
@@ -391,7 +391,7 @@ foreach ($testCases as $test) {
         require_once './do_regexTest_func.php';
 
         $showTestRunnerDebugOutput = FALSE;
-        if (isset($config['maxLinesToRead'])) {
+        if (isset($config['showTestRunnerDebugOutput'])) {
             $showTestRunnerDebugOutput = $config['showTestRunnerDebugOutput'];
         }
 
@@ -548,7 +548,7 @@ foreach ($testCases as $test) {
 
 
             $showTestRunnerDebugOutput = FALSE;
-            if (isset($config['maxLinesToRead'])) {
+            if (isset($config['showTestRunnerDebugOutput'])) {
                 $showTestRunnerDebugOutput = $config['showTestRunnerDebugOutput'];
             }