mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Add inline doc and data check for create_defaults()
This commit is contained in:
parent
d61dadfa72
commit
7e4ec5264e
@ -205,14 +205,23 @@
|
|||||||
return $temp_data;
|
return $temp_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function create_defaults
|
||||||
|
@abstract insert a copy of the default preferences for use by real account_id
|
||||||
|
@discussion
|
||||||
|
@param $account_id numerical id of account for which to create the prefs
|
||||||
|
*/
|
||||||
function create_defaults($account_id)
|
function create_defaults($account_id)
|
||||||
{
|
{
|
||||||
$this->db->query("select * from phpgw_preferences where preference_owner='-2'",__LINE__,__FILE__);
|
$this->db->query("select * from phpgw_preferences where preference_owner='-2'",__LINE__,__FILE__);
|
||||||
$this->db->next_record();
|
$this->db->next_record();
|
||||||
|
|
||||||
|
if($this->db->f('preference_value'))
|
||||||
|
{
|
||||||
$this->db->query("insert into phpgw_preferences values ('$account_id','"
|
$this->db->query("insert into phpgw_preferences values ('$account_id','"
|
||||||
. $this->db->f('preference_value') . "')",__LINE__,__FILE__);
|
. $this->db->f('preference_value') . "')",__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@function update_data
|
@function update_data
|
||||||
|
Loading…
Reference in New Issue
Block a user