We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6796cd + fd952dd commit ec6494aCopy full SHA for ec6494a
src/Classes/ExportLocalizations.php
@@ -200,7 +200,7 @@ public function toFlat( $prefix = '.' )
200
$default_key = $default_locale . $prefix . '__JSON__';
201
if ( !array_key_exists( $default_key, $results ) ) {
202
$buffer = array_keys(
203
- get_object_vars( $default_json_strings )
+ $default_json_strings ? get_object_vars( $default_json_strings ) : []
204
);
205
206
$results[ $default_key ] = array_combine( $buffer, $buffer );
0 commit comments