From 5c9f0cee4df34d385f98211490d736673e43b805 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 21 Jul 2022 14:09:21 +0200 Subject: [PATCH] wait #5368 @0.5 --- app/Models/FluidbookTranslate.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Models/FluidbookTranslate.php b/app/Models/FluidbookTranslate.php index e090c191f..320c41b1c 100644 --- a/app/Models/FluidbookTranslate.php +++ b/app/Models/FluidbookTranslate.php @@ -72,7 +72,11 @@ class FluidbookTranslate extends Translate start_measure('Get all fluidbook translations'); if (null === self::$_allTranslations) { $t = FluidbookTranslate::find(1); - $json = json_decode($t->getRawOriginal('content_translatable'), true, 512, JSON_THROW_ON_ERROR); + try { + $json = json_decode($t->getRawOriginal('content_translatable'), true, 512, JSON_THROW_ON_ERROR); + }catch (\Exception $e){ + $json=[]; + } self::$_allTranslations = []; -- 2.39.5