aboutsummaryrefslogtreecommitdiffstats
path: root/langs/diff.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs/diff.php')
-rw-r--r--langs/diff.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/langs/diff.php b/langs/diff.php
index bc6e0ab5a..686b90ea7 100644
--- a/langs/diff.php
+++ b/langs/diff.php
@@ -71,6 +71,7 @@ if ($gettext) {
$issues = array(
'missing' => 'missing strings',
+ 'fuzzy_or_missing' => 'fuzzy or missing strings',
'notrans' => 'untranslated strings',
'extra' => 'unused (old) strings',
'dup_str' => 'duplicate strings',
@@ -115,7 +116,7 @@ $s .= '<p>After translation:</p>
</ul>';
foreach ($issues as $type => $name) {
- if (count($diff[$type]) > 0) {
+ if (isset($diff[$type]) && $diff[$type] > 0) {
$s .= sprintf('<h2>%d %s:</h2>', count($diff[$type]), $name);
$s .= '<pre>';
if ($type == 'untranslated_lines_in_constitution') {