diff --git a/Domain/Values/CustomAttributes.php b/Domain/Values/CustomAttributes.php index acd60d806..dde9c4707 100644 --- a/Domain/Values/CustomAttributes.php +++ b/Domain/Values/CustomAttributes.php @@ -19,8 +19,12 @@ public static function Parse($attributes) $pairs = explode('!sep!', $attributes); foreach ($pairs as $pair) { - $nv = explode('=', $pair); - $ca->Add($nv[0], $nv[1]); + $nv = explode('=', $pair, 2); + if (count($nv) !== 2) { + Log::Debug('nv not exploded to two values: %s', print_r($nv, true)); + } else { + $ca->Add($nv[0], $nv[1]); + } } return $ca;