From fa42b4840317c56f026668d5472b8b4e4bb17cab Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 10 May 2001 19:13:15 +0000 Subject: [PATCH] * Further optimization git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1349 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/prefs.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions/prefs.php b/functions/prefs.php index 76704e93..d2d75560 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -103,6 +103,12 @@ global $prefs_cache; cachePrefValues($data_dir, $username); + if ($prefs_cache[$string] == $set_to) + return; + if ($set_to == '') { + removePref($data_dir, $username, $string); + return; + } $prefs_cache[$string] = $set_to; savePrefValues($data_dir, $username); } -- 2.25.1