Skip to content

Commit 6bc895e

Browse files
authored
fix incorrect test (#82)
1 parent 6c28fdd commit 6bc895e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/ss_servcheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function ss_servcheck(string $cmd = 'index', string $arg1 = '', string $arg2 = '
9393
WHERE id = ?',
9494
[$index]);
9595

96-
$value = 'ok' ? 1 : 0;
96+
$value = (int) ($value === 'ok');
9797

9898
break;
9999
}

0 commit comments

Comments
 (0)