forked from extern/egroupware
fix for missing param
This commit is contained in:
parent
2e933e41df
commit
5909a9738a
@ -196,12 +196,12 @@
|
|||||||
var $account_id;
|
var $account_id;
|
||||||
var $preferences;
|
var $preferences;
|
||||||
|
|
||||||
function preferences($account_id)
|
function preferences($account_id=0)
|
||||||
{
|
{
|
||||||
global $phpgw;
|
global $phpgw;
|
||||||
$db2 = $phpgw->db;
|
$db2 = $phpgw->db;
|
||||||
$load_pref = True;
|
$load_pref = True;
|
||||||
if (is_long($account_id)) {
|
if (is_long($account_id) && $account_id) {
|
||||||
$this->account_id = $account_id;
|
$this->account_id = $account_id;
|
||||||
} elseif(is_string($account_id)) {
|
} elseif(is_string($account_id)) {
|
||||||
$db2->query("SELECT account_id FROM accounts WHERE account_lid='".$account_id."'");
|
$db2->query("SELECT account_id FROM accounts WHERE account_lid='".$account_id."'");
|
||||||
|
Loading…
Reference in New Issue
Block a user