projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified version of asearch plugin, replacing our search.php.
[squirrelmail.git]
/
functions
/
db_prefs.php
diff --git
a/functions/db_prefs.php
b/functions/db_prefs.php
index 960a8bbe2776ea81345ed3bd83fb8c79d8d11449..a973f363987285afc38a3eeaa37294f870664ddf 100644
(file)
--- 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) {
/* Remove the pref $string */
function removePref($data_dir, $username, $string) {
+ global $prefs_cache;
$db = new dbPrefs;
if(isset($db->error)) {
$db->failQuery();
$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)) {
global $prefs_cache;
if (isset($prefs_cache[$string]) && ($prefs_cache[$string] == $set_to)) {
- return;
+
return;
}
if ($set_to === '') {
}
if ($set_to === '') {