Skip to content

Commit ec6494a

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/Classes/ExportLocalizations.php
2 parents f6796cd + fd952dd commit ec6494a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Classes/ExportLocalizations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function toFlat( $prefix = '.' )
200200
$default_key = $default_locale . $prefix . '__JSON__';
201201
if ( !array_key_exists( $default_key, $results ) ) {
202202
$buffer = array_keys(
203-
get_object_vars( $default_json_strings )
203+
$default_json_strings ? get_object_vars( $default_json_strings ) : []
204204
);
205205

206206
$results[ $default_key ] = array_combine( $buffer, $buffer );

0 commit comments

Comments
 (0)