phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.42,1.43


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.42,1.43
Date: Sat, 12 Jan 2002 22:58:43 -0500

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv15030/phpgwapi/inc

Modified Files:
        class.preferences.inc.php 
Log Message:
Added a call to sessions->delete_cache() and a call to re-read the users 
session data when being set to the default preferences set by the admin.

Index: class.preferences.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.preferences.inc.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** class.preferences.inc.php   11 Jan 2002 02:01:24 -0000      1.42
--- class.preferences.inc.php   13 Jan 2002 03:58:41 -0000      1.43
***************
*** 240,243 ****
--- 240,244 ----
                        if 
($GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $this->account_id == 
$GLOBALS['phpgw_info']['user']['account_id'])
                        {
+                               
$GLOBALS['phpgw']->session->delete_cache($this->account_id);
                                
$GLOBALS['phpgw']->session->read_repositories(False);
                        }
***************
*** 262,265 ****
--- 263,272 ----
                                        . $this->db->f('preference_value') . 
"')",__LINE__,__FILE__);
                        }
+                       
+                       if 
($GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $account_id == 
$GLOBALS['phpgw_info']['user']['account_id'])
+                       {
+                               
$GLOBALS['phpgw']->session->read_repositories(False);
+                       }
+ 
                }
  
***************
*** 508,511 ****
--- 515,519 ----
                        if (!(isset($acctnum)) || ((string)$acctnum == ''))
                        {
+                               settype($acctnum,'integer');
                                // account 0 is the default email account
                                $acctnum = 0;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]