diff --git a/src/I18n/Loader/Gettext.php b/src/I18n/Loader/Gettext.php index 00d5404..44373c3 100644 --- a/src/I18n/Loader/Gettext.php +++ b/src/I18n/Loader/Gettext.php @@ -144,7 +144,7 @@ public function load($locale, $filename) } // Read header entries - if (array_key_exists('', $textDomain)) { + if (property_exists($textDomain, '')) { // We really don't need this for our needs //$rawHeaders = explode("\n", trim($textDomain[''])); // @@ -194,4 +194,4 @@ protected function readIntegerList($num) return unpack('N' . $num, fread($this->file, 4 * $num)); } -} \ No newline at end of file +}