diff --git a/src/Services/Tg/Hook/Dog.php b/src/Services/Tg/Hook/Dog.php index 66e9ad562..479615c79 100644 --- a/src/Services/Tg/Hook/Dog.php +++ b/src/Services/Tg/Hook/Dog.php @@ -611,11 +611,11 @@ class Dog extends Mod\Base { } foreach ($this->aStrField as $sStrField) { - $aData[$sStrField] = $this->subStr($aData[$sStrField]); + $aData[$sStrField] = $this->subStr($aData[$sStrField] ?? ''); } foreach ($this->aJsonField as $sJsonField) { - $aData[$sJsonField] = json_decode($aData[$sJsonField]); + $aData[$sJsonField] = json_decode($aData[$sJsonField] ?? ''); } foreach ($this->aOutFormat as $sFormatField => $sFormatType) {