Skip to content

Commit c281e23

Browse files
committed
Avoid error if profile is missing
1 parent ddaf6c2 commit c281e23

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Saver/MongoSaver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public function isSupported()
2020

2121
public function save(array $data)
2222
{
23-
$data['profile'] = $this->encodeProfile($data['profile']);
23+
if (isset($data['profile'])) {
24+
$data['profile'] = $this->encodeProfile($data['profile']);
25+
}
2426

2527
$result = parent::save($data);
2628

0 commit comments

Comments
 (0)