forked from extern/egroupware
it was not able to change preferences, because $preferences->account_id as
not set
This commit is contained in:
parent
e6a2e46a6f
commit
1c61949d9c
@ -184,7 +184,7 @@
|
||||
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_".$phpgw_info["server"]["account_repository"].".inc.php");
|
||||
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_shared.inc.php");
|
||||
$this->auth = new auth;
|
||||
$this->preferences = new preferences;
|
||||
$this->preferences = new preferences($phpgw_info["user"]["account_lid"]);
|
||||
}
|
||||
$this->accounts = new accounts;
|
||||
$this->translation = new translation;
|
||||
|
@ -199,6 +199,7 @@
|
||||
function preferences($account_id=0)
|
||||
{
|
||||
global $phpgw;
|
||||
|
||||
$db2 = $phpgw->db;
|
||||
$load_pref = True;
|
||||
if (is_long($account_id) && $account_id) {
|
||||
@ -224,9 +225,10 @@
|
||||
// This should be called when you are done makeing changes to the preferences
|
||||
function commit($line = "",$file = "")
|
||||
{
|
||||
//echo "<br>commit called<br>Line: $line<br>File: $file";
|
||||
|
||||
global $phpgw, $phpgw_info;
|
||||
|
||||
//echo "<br>commit called<br>Line: $line<br>File: $file".$phpgw_info["user"]["account_id"]."<br>";
|
||||
|
||||
if ($this->account_id) {
|
||||
$db = $phpgw->db;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user