diff options
Diffstat (limited to 'admin/survey/classes/class.UserSetting.php')
-rw-r--r-- | admin/survey/classes/class.UserSetting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/survey/classes/class.UserSetting.php b/admin/survey/classes/class.UserSetting.php index 58f9488..c8c62ff 100644 --- a/admin/survey/classes/class.UserSetting.php +++ b/admin/survey/classes/class.UserSetting.php @@ -33,7 +33,7 @@ protected function __construct() {}
- final private function __clone() {}
+ private function __clone() {}
/** Poskrbimo za samo eno instanco razreda
*
@@ -98,7 +98,7 @@ static function getUserId() { return self::$userId; }
static function getUserSetting($what) {
- return self::$user_setting[$what];
+ return self::$user_setting[$what] ?? null;
}
/** @desc ponastavi nastavitev in shrani v bazo
|