Skip to content

Commit c09b314

Browse files
committed
MAGETWO-34390: Stabilization of replacing Zend_Locale with Native PHP Implementation
1 parent afdbb5a commit c09b314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Locale/Bundle/DataBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function get($locale)
2828
$class = get_class($this);
2929
if (!isset(static::$bundles[$class][$locale])) {
3030
$bundle = new \ResourceBundle($locale, $this->path);
31-
if ($bundle->count() == 0 && $this->path != 'ICUDATA') {
31+
if (!$bundle && $this->path != 'ICUDATA') {
3232
$bundle = new \ResourceBundle($locale, 'ICUDATA');
3333
}
3434
static::$bundles[$class][$locale] = $bundle;

0 commit comments

Comments
 (0)