When importing a .po file I received a warning for each entry without a leading comment.

warning: in_array() [function.in-array]: Wrong datatype for second argument in /www/drupal-6.10/sites/example.org/modules/l10n_server/l10n_community/import.inc on line 266.

The code only checks for a fuzzy flag in the array of comments so skipping when no comment is available seems reasonable.

The attached patch resolves the issue for me.

CommentFileSizeAuthor
l10n_server_import_po_without_comments.patch737 byteshelmo

Comments

gábor hojtsy’s picture

Status: Active » Fixed

This looks all logical. Committed, thanks.

Status: Fixed » Closed (fixed)
Issue tags: -import po

Automatically closed -- issue fixed for 2 weeks with no activity.