Skip to content

Commit bda2db7

Browse files
committed
Update TranslationController.php
1 parent 06085f3 commit bda2db7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Http/Controllers/TranslationController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ public function updateMultiPhrase(Translation $translation): JsonResponse
152152
]);
153153

154154
foreach (request()->phrases as $phrase) {
155-
if ($phrase['value'] == null)
155+
if (empty($phrase['value'])) {
156156
continue;
157+
}
158+
157159
$phrase = Phrase::where('uuid', $phrase['uuid'])->first();
158160

159161
$phrase->update([

0 commit comments

Comments
 (0)