Skip to content

Commit

Permalink
Merge pull request #301 from silinternational/feature/fix-error-array
Browse files Browse the repository at this point in the history
encode the array before assigning it to 'error'
  • Loading branch information
briskt authored Dec 11, 2024
2 parents 5fd5b6f + c73d251 commit 2ad9012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/common/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ private function saveOrError(string $msg, int $code = null): void
\Yii::error([
'action' => $msg,
'status' => 'error',
'error' => $this->getFirstErrors(),
'error' => json_encode($this->getFirstErrors()),
]);
if ($code !== null) {
throw new \Exception($msg, $code);
Expand Down

0 comments on commit 2ad9012

Please sign in to comment.