diff --git a/application/controllers/payslip.php b/application/controllers/payslip.php index 227682a7..4d6e3bf2 100755 --- a/application/controllers/payslip.php +++ b/application/controllers/payslip.php @@ -482,7 +482,7 @@ function getEmployee() $no = floor($no / $divider); $i += ($divider == 10) ? 1 : 2; if ($number) { - $plural = (($counter = count($str)) && $number > 9) ? 's' : null; + $plural = (($counter = count($str)) && $number > 1) ? 's' : null; $hundred = ($counter == 1 && $str[0]) ? ' and ' : null; $str [] = ($number < 21) ? $words[$number] . " " . $digits[$counter] . $plural . " " . $hundred