summaryrefslogtreecommitdiff
path: root/classes/Prefs.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Prefs.php')
-rw-r--r--classes/Prefs.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/classes/Prefs.php b/classes/Prefs.php
index f778f0f84..8d84d5ec2 100644
--- a/classes/Prefs.php
+++ b/classes/Prefs.php
@@ -303,11 +303,7 @@ class Prefs {
*/
private function _get_cache(string $pref_name, int $owner_uid, ?int $profile_id) {
$cache_key = sprintf("%d/%d/%s", $owner_uid, $profile_id, $pref_name);
-
- if (isset($this->cache[$cache_key]))
- return $this->cache[$cache_key];
-
- return null;
+ return $this->cache[$cache_key] ?? null;
}
/**