Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mucskaati committed May 14, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 529363c commit 2ac9b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Answer.php
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ class Answer extends Model
public function getAnswerDecodedAttribute()
{
$answer = json_decode($this->answer);
return (gettype($answer) == 'array') ? $answer : [];
return (gettype($answer) == 'array' || gettype($answer) == 'object') ? $answer : [];
}

public function getAnswerHumanAttribute()

0 comments on commit 2ac9b32

Please sign in to comment.