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.43.2.2


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.43.2.2.2.7,1.43.2.2.2.8
Date: Tue, 20 May 2003 00:30:05 -0400

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

Modified Files:
      Tag: Version-0_9_16-branch
        class.preferences.inc.php 
Log Message:
Fix for PostgreSQL


Index: class.preferences.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.preferences.inc.php,v
retrieving revision 1.43.2.2.2.7
retrieving revision 1.43.2.2.2.8
diff -C2 -r1.43.2.2.2.7 -r1.43.2.2.2.8
*** class.preferences.inc.php   19 May 2003 23:04:36 -0000      1.43.2.2.2.7
--- class.preferences.inc.php   20 May 2003 04:30:02 -0000      1.43.2.2.2.8
***************
*** 220,224 ****
                        while($this->db->next_record())
                        {
!                               $app = $this->db->f('preference_app');
                                $value = 
unserialize($this->db->f('preference_value'));
                                $this->unquote($value);
--- 220,225 ----
                        while($this->db->next_record())
                        {
!                               // The following ereg is required for 
PostgreSQL to work
!                               $app = ereg_replace(' 
','',$this->db->f('preference_app'));
                                $value = 
unserialize($this->db->f('preference_value'));
                                $this->unquote($value);
***************
*** 241,245 ****
                        }
                        $this->data = $this->user;
!                       
                        // now use defaults if needed (user-value unset or 
empty)
                        //
--- 242,246 ----
                        }
                        $this->data = $this->user;
! 
                        // now use defaults if needed (user-value unset or 
empty)
                        //
***************
*** 522,526 ****
                        {
                                $this->db->transaction_begin();
!                               $this->db->query("delete from phpgw_preferences 
where preference_owner=$account_id",
                                        __LINE__,__FILE__);
  
--- 523,527 ----
                        {
                                $this->db->transaction_begin();
!                               $this->db->query("delete from phpgw_preferences 
where preference_owner='$account_id'",
                                        __LINE__,__FILE__);
  
***************
*** 600,604 ****
                function commit($update_session_info = True)
                {
!                       return $this->save_repository($update_session_info);
                }
  
--- 601,605 ----
                function commit($update_session_info = True)
                {
!                       //return $this->save_repository($update_session_info);
                }
  





reply via email to

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