Carried over modification made to file_prefs to distinguish
[squirrelmail.git] / functions / db_prefs.php
index 3708441dac832583a3940c7b3b4e595e663ece04..ef96837d4a0c7915deadd1e6286461431b24b7ee 100644 (file)
@@ -298,10 +298,10 @@ 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 === '') {
         removePref($data_dir, $username, $string);
         return;
     }
         removePref($data_dir, $username, $string);
         return;
     }