소스 검색

* Further optimization

Tyler Akins 24 년 전
부모
커밋
31e1b270df
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      functions/prefs.php

+ 6 - 0
functions/prefs.php

@@ -103,6 +103,12 @@
       global $prefs_cache;
       
       cachePrefValues($data_dir, $username);
+      if ($prefs_cache[$string] == $set_to)
+         return;
+      if ($set_to == '') {
+         removePref($data_dir, $username, $string);
+	 return;
+      }
       $prefs_cache[$string] = $set_to;
       savePrefValues($data_dir, $username);
    }