From 204eb15010690063c32ca79ca63a273d08976610 Mon Sep 17 00:00:00 2001 From: Craig Duncan Date: Sat, 5 Nov 2016 17:19:16 +0000 Subject: [PATCH] Fix run-tests.php counting an uncountable --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 247e7d531389c..74271a6099f5b 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1637,7 +1637,7 @@ function run_test($php, $file, $env) $IN_REDIRECT['dir'] = realpath(dirname($file)); $IN_REDIRECT['prefix'] = trim($section_text['TEST']); - if (count($IN_REDIRECT['TESTS']) == 1) { + if (is_array($IN_REDIRECT['TESTS']) && count($IN_REDIRECT['TESTS']) == 1) { if (is_array($org_file)) { $test_files[] = $org_file[1];