Bugfix Order
This commit is contained in:
@@ -61,7 +61,7 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
|
||||
|
||||
public function getSetting($key, $false = false) {
|
||||
$settings = json_decode($this->settings);
|
||||
if(!is_null($settings))
|
||||
if(!is_null($settings) && property_exists($settings, $key))
|
||||
return $settings->$key;
|
||||
else
|
||||
return $false;
|
||||
|
||||
Reference in New Issue
Block a user