Skip to content

Commit

Permalink
check contentlanguages not null on getter (#14891)
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Jenkins <cameron.jenkins@torqit.ca>
  • Loading branch information
torqdev and cameronfromtorq committed Apr 24, 2023
1 parent aa38319 commit a17a73d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/User.php
Expand Up @@ -588,7 +588,7 @@ public function getImage($width = null, $height = null)
*/
public function getContentLanguages()
{
if (strlen($this->contentLanguages)) {
if (is_string($this->contentLanguages) && strlen($this->contentLanguages)) {
return explode(',', $this->contentLanguages);
}

Expand Down

0 comments on commit a17a73d

Please sign in to comment.