php-gettext / Gettext

PHP library to collect and manipulate gettext (.po, .mo, .php, .json, etc)
MIT License
688 stars 135 forks source link

Fix PHP error when scanning for single domain, but other strings found. #238

Closed briedis closed 4 years ago

briedis commented 4 years ago

Fixes this error: https://github.com/php-gettext/Gettext/issues/228

There was a wrong if condition. Created a test which fails. Patch fixes this simple case.

oscarotero commented 4 years ago

Thanks!