浏览代码

no need to init $result twice

robsiemb 23 年之前
父节点
当前提交
c67d301d2a
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      functions/file_prefs.php

+ 0 - 1
functions/file_prefs.php

@@ -78,7 +78,6 @@ function cachePrefValues($data_dir, $username) {
 function getPref($data_dir, $username, $string, $default = '') {
 function getPref($data_dir, $username, $string, $default = '') {
     global $prefs_cache;
     global $prefs_cache;
 
 
-    $result = '';
     $result = do_hook_function('get_pref_override',array($username,$string));
     $result = do_hook_function('get_pref_override',array($username,$string));
     if (!$result) {
     if (!$result) {
 	cachePrefValues($data_dir, $username);
 	cachePrefValues($data_dir, $username);