From 1fa62ab91948892e4910ec3673ea8edea7af9231 Mon Sep 17 00:00:00 2001 From: ebullient Date: Fri, 28 Mar 2003 05:22:51 +0000 Subject: [PATCH] remove_pref function was missing global prefs_cache declare. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4697 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/db_prefs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/db_prefs.php b/functions/db_prefs.php index 960a8bbe..a973f363 100644 --- a/functions/db_prefs.php +++ b/functions/db_prefs.php @@ -284,6 +284,7 @@ function getPref($data_dir, $username, $string, $default = '') { /* Remove the pref $string */ function removePref($data_dir, $username, $string) { + global $prefs_cache; $db = new dbPrefs; if(isset($db->error)) { $db->failQuery(); @@ -304,7 +305,7 @@ function setPref($data_dir, $username, $string, $set_to) { global $prefs_cache; if (isset($prefs_cache[$string]) && ($prefs_cache[$string] == $set_to)) { - return; + return; } if ($set_to === '') { -- 2.25.1