[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.44,1.45
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.44,1.45 |
Date: |
Sun, 19 May 2002 18:57:43 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv32049
Modified Files:
class.preferences.inc.php
Log Message:
Update inserts to account for new field type of preference_owner
Index: class.preferences.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.preferences.inc.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -r1.44 -r1.45
*** class.preferences.inc.php 23 Apr 2002 02:18:30 -0000 1.44
--- class.preferences.inc.php 19 May 2002 22:57:41 -0000 1.45
***************
*** 41,45 ****
var $db;
/*! @var debug_init_prefs */
! var $debug_init_prefs = 0;
//var $debug_init_prefs = 1;
//var $debug_init_prefs = 2;
--- 41,45 ----
var $db;
/*! @var debug_init_prefs */
! var $debug_init_preys = 0;
//var $debug_init_prefs = 1;
//var $debug_init_prefs = 2;
***************
*** 72,77 ****
{
$this->db->query("SELECT * FROM phpgw_preferences WHERE
"
! . "preference_owner='" . $this->account_id . "'
or "
! . "preference_owner='-1' order by
preference_owner desc",__LINE__,__FILE__);
$this->db->next_record();
--- 72,77 ----
{
$this->db->query("SELECT * FROM phpgw_preferences WHERE
"
! . "preference_owner='" . $this->account_id . "'
OR "
! . "preference_owner='-1' ORDER BY
preference_owner DESC",__LINE__,__FILE__);
$this->db->next_record();
***************
*** 216,220 ****
{
$this->db->transaction_begin();
! $this->db->query("delete from phpgw_preferences
where preference_owner='" . $this->account_id
. "'",__LINE__,__FILE__);
--- 216,220 ----
{
$this->db->transaction_begin();
! $this->db->query("DELETE FROM phpgw_preferences
WHERE preference_owner='" . $this->account_id
. "'",__LINE__,__FILE__);
***************
*** 227,232 ****
$pref_info = serialize($this->data);
}
! $this->db->query("insert into phpgw_preferences
(preference_owner,preference_value) values ('"
! . $this->account_id . "','" .
$pref_info . "')",__LINE__,__FILE__);
$this->db->transaction_commit();
--- 227,232 ----
$pref_info = serialize($this->data);
}
! $this->db->query("INSERT INTO phpgw_preferences
(preference_owner,preference_value) VALUES ("
! . intval($this->account_id) . ",'" .
$pref_info . "')",__LINE__,__FILE__);
$this->db->transaction_commit();
***************
*** 255,264 ****
function create_defaults($account_id)
{
! $this->db->query("select * from phpgw_preferences where
preference_owner='-2'",__LINE__,__FILE__);
$this->db->next_record();
if($this->db->f('preference_value'))
{
! $this->db->query("insert into phpgw_preferences
values ('$account_id','"
. $this->db->f('preference_value') .
"')",__LINE__,__FILE__);
}
--- 255,264 ----
function create_defaults($account_id)
{
! $this->db->query("SELECT * FROM phpgw_preferences WHERE
preference_owner='-2'",__LINE__,__FILE__);
$this->db->next_record();
if($this->db->f('preference_value'))
{
! $this->db->query("INSERT INTO phpgw_preferences
VALUES (" . intval($account_id) . ",'"
. $this->db->f('preference_value') .
"')",__LINE__,__FILE__);
}
***************
*** 268,272 ****
$GLOBALS['phpgw']->session->read_repositories(False);
}
-
}
--- 268,271 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.44,1.45,
Miles Lott <address@hidden> <=