[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] CVS: squirrelmail/functions db_prefs.php,1.21.2.5,1.21.2.6
From:       Jonathan Angliss <jangliss () users ! sourceforge ! net>
Date:       2003-03-26 16:07:40
[Download RAW message or body]

Update of /cvsroot/squirrelmail/squirrelmail/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv30367/functions

Modified Files:
      Tag: SM-1_2-STABLE
	db_prefs.php 
Log Message:
PHP 4.3.x prefs issue fix for db stored prefs.



Index: db_prefs.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/functions/db_prefs.php,v
retrieving revision 1.21.2.5
retrieving revision 1.21.2.6
diff -u -w -r1.21.2.5 -r1.21.2.6
--- db_prefs.php	18 Dec 2002 19:47:41 -0000	1.21.2.5
+++ db_prefs.php	26 Mar 2003 16:07:34 -0000	1.21.2.6
@@ -290,6 +290,13 @@
     }
 
     $db->deleteKey($username, $string);
+
+    if (isset($prefs_cache[$string])) {
+        unset($prefs_cache[$string]);
+    }
+
+    sqsession_register($prefs_cache , 'prefs_cache');
+
     return;
 }
 
@@ -316,7 +323,7 @@
     assert_options(ASSERT_ACTIVE, 1);
     assert_options(ASSERT_BAIL, 1);
     assert ('$set_to == $prefs_cache[$string]');
-
+    sqsession_register($prefs_cache , 'prefs_cache');
     return;
 }
 



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs@lists.sourceforge.net
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic