Commit 07192616 authored by Jack Stupple's avatar Jack Stupple

language doesn't aways exist

parent 44e8e6ae
......@@ -23,7 +23,7 @@ class Player extends Model
public function getCurrencyAttribute()
return $this->language->currency;
return $this->language ? $this->language->currency : null;
public function language()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment