From: Vincent Vanwaelscappel Date: Thu, 21 Jul 2022 12:09:21 +0000 (+0200) Subject: wait #5368 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5c9f0cee4df34d385f98211490d736673e43b805;p=fluidbook-toolbox.git wait #5368 @0.5 --- 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 = [];