Preferences save now
[squirrelmail.git] / functions / prefs.php
index 1f6891bd663ef2c85d22e1027f1cbad39651491b..7253092b22cee9715f7cbead96013c28f90e86c3 100644 (file)
@@ -63,9 +63,9 @@
 
    /** This checks if there is a pref file, if there isn't, it will create it. **/
    function checkForPrefs($username) {
-      $filename = "../data/default_pref";
+      $filename = "../data/$username.pref";
       if (!file_exists($filename)) {
-         if (!copy("../config/default.pref", $filename)) {
+         if (!copy("../data/default_pref", $filename)) {
             echo "Error opening $filename";
             exit;
          }