yet another db_prefs patch
authorteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 26 Jan 2002 10:24:38 +0000 (10:24 +0000)
committerteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 26 Jan 2002 10:24:38 +0000 (10:24 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2245 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/db_prefs.php

index b0f38df7cdb169143c6e738f67c1ee5743df3c7e..7bc0800a6e956525d21fbc879c3a7e9c2e78e24c 100644 (file)
@@ -21,7 +21,7 @@
  *    prefkey    char  /  key
  *    prefval    blob
  *
- *   CREATE TABLE userprefs (user CHAR(32) NOT NULL DEFAULT '',
+ *   CREATE TABLE userprefs (user CHAR(128) NOT NULL DEFAULT '',
  *                           prefkey CHAR(64) NOT NULL DEFAULT '',
  *                           prefval BLOB NOT NULL DEFAULT '',
  *                           primary key (user,prefkey));
@@ -265,7 +265,7 @@ function removePref($data_dir, $username, $string) {
 function setPref($data_dir, $username, $string, $set_to) {
     global $prefs_cache;
 
-    if (isset($prefs_cache[$string]) && ($prefs_cache[$string] == $value)) {
+    if (isset($prefs_cache[$string]) && ($prefs_cache[$string] == $set_to)) {
         return;
     }