between a 0 value, and an unset value using ===.
Certain prefs were unsaveable after the XSS changes, which
cast zero values to ints (instead of strings), causing
them to pass the $set_to == '' check, and thus be treated
as an unset value, rather than a value of 0.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4280
7612ce4b-ef26-0410-bec9-
ea0150e637f0
global $prefs_cache;
if (isset($prefs_cache[$string]) && ($prefs_cache[$string] == $set_to)) {
- return;
+ return;
}
- if ($set_to == '') {
+ if ($set_to === '') {
removePref($data_dir, $username, $string);
return;
}