瀏覽代碼

Fix "Failed opening default pref" bug, closes #680331, thanks David Walser

Thijs Kinkhorst 22 年之前
父節點
當前提交
fa2fad7ddc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/file_prefs.php

+ 1 - 1
functions/file_prefs.php

@@ -179,7 +179,7 @@ function checkForPrefs($data_dir, $username, $filename = '') {
     /* Then, check if the file exists. */
     if (!@file_exists($filename) ) {
         /* First, check the $data_dir for the default preference file. */
-        $default_pref = $data_dir . 'default_pref';
+        $default_pref = $data_dir . '/default_pref';
 
         /* If it is not there, check the internal data directory. */
         if (!@file_exists($default_pref)) {