Browse Source

Make sure is initialized when resetting the cache

pdontthink 2 years ago
parent
commit
022460cfb2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      functions/file_prefs.php

+ 1 - 0
functions/file_prefs.php

@@ -34,6 +34,7 @@ function cachePrefValues($data_dir, $username) {
         return;
     }
 
+    $prefs_cache = array();
     sqsession_unregister('prefs_cache');
     sqsession_unregister('prefs_are_cached');