We're living in 2004 now... perl is your friend for these kinds of things :)
[squirrelmail.git] / functions / file_prefs.php
index 5ed99124d85beb1d3cdb3d68d27c78a30f7d0f0b..692b6c0411bfdaa0ef7b28cf48d1b883904ca39d 100644 (file)
@@ -3,15 +3,16 @@
 /**
  * file_prefs.php
  *
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * This contains functions for manipulating user preferences in files
  *
  * $Id$
+ * @package squirrelmail
  */
 
-/* include this for error messages */
+/** include this for error messages */
 include_once(SM_PATH . 'functions/display_messages.php');
 
 /**
@@ -131,7 +132,7 @@ function savePrefValues($data_dir, $username) {
         exit;
     }
     @unlink($filename . '.tmp');
-    chmod($filename, 0600);
+    @chmod($filename, 0600);
     sqsession_register($prefs_cache , 'prefs_cache');
 }
 
@@ -236,7 +237,7 @@ function setSig($data_dir, $username, $number, $value) {
        exit;
     }
     @unlink($filename . '.tmp');
-    chmod($filename, 0600);
+    @chmod($filename, 0600);
 
 }