From 4b7dd3d9a94e3eede020bb4769f88082af86a3d5 Mon Sep 17 00:00:00 2001 From: teepe Date: Sat, 26 Jan 2002 10:24:38 +0000 Subject: [PATCH] yet another db_prefs patch git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2245 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/db_prefs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/db_prefs.php b/functions/db_prefs.php index b0f38df..7bc0800 100644 --- a/functions/db_prefs.php +++ b/functions/db_prefs.php @@ -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; } -- 1.9.1