Skip to content

Commit

Permalink
Fix run-tests.php counting an uncountable
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan3dc committed Nov 6, 2016
1 parent 2f04f13 commit 204eb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-tests.php
Expand Up @@ -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];
Expand Down

0 comments on commit 204eb15

Please sign in to comment.