Skip to content

Commit 9f2ffb3

Browse files
authored
Update Translatable.php
1 parent 1a5df52 commit 9f2ffb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Eloquent/Traits/Translatable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ protected static function bootTranslatable()
5454
$original = $model->getOriginal($item);
5555
$original_locales = json_decode($original, true);
5656

57-
if (!is_array($original_locales) && is_string($original)) {
57+
if (!is_array($original_locales) && is_string($original)
58+
|| !$original_locales && is_string($original)
59+
|| !$original_locales && is_null($original)) {
5860
$original_locales = [
5961
config('app.fallback_locale') => $original
6062
];

0 commit comments

Comments
 (0)