Fixes PHP warning

1.10.x
Julio Montoya 10 years ago
parent fdbdd4f681
commit 6c6128be46
  1. 2
      main/gradebook/lib/scoredisplay.class.php

@ -379,7 +379,7 @@ class ScoreDisplay
$score = $this->display_simple_score($score);
//needs sudo apt-get install php5-intl
if (class_exists(NumberFormatter)) {
if (class_exists('NumberFormatter')) {
$iso = api_get_language_isocode();
$f = new NumberFormatter($iso, NumberFormatter::SPELLOUT);
$letters = $f->format($score);

Loading…
Cancel
Save