diff options
-rw-r--r-- | langs/lib.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/langs/lib.php b/langs/lib.php index 73ef44ced..ddbfff733 100644 --- a/langs/lib.php +++ b/langs/lib.php @@ -111,9 +111,9 @@ function _po_diff($locale, $resource, $source_l = NULL, $path = NULL) if (FALSE != $source_l) { foreach ($source_l as $escaped_string => $subarray) { - if (!empty($subarray["msgid"])) { // filter out header + if (!empty($escaped_string)) { // filter out header $msgctxt = array(); - foreach ($subarray["msgstr"] as $key => $unused) { + foreach ($subarray[0] as $key => $unused) { if (isset($subarray["msgctxt"][$key])) { $msgctxt[$key] = $subarray["msgctxt"][$key]; } else { @@ -131,8 +131,8 @@ function _po_diff($locale, $resource, $source_l = NULL, $path = NULL) if (FALSE != $target_l) { foreach ($target_l as $escaped_string => $subarray) { - if (!empty($subarray["msgid"])) { // filter out header - foreach ($subarray["msgstr"] as $key => $msgstr) { + if (!empty($escaped_string)) { // filter out header + foreach ($subarray[0] as $key => $msgstr) { // remove present string unset($fuzzy_or_missing[$escaped_string][$key]); if (!empty($msgstr)) { |