mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-26 23:21:49 +01:00
cleaned up constructor a bit
This commit is contained in:
parent
6f8e4c0b6c
commit
cbe5e2e4a5
@ -25,7 +25,6 @@
|
|||||||
class applications
|
class applications
|
||||||
{
|
{
|
||||||
var $account_id;
|
var $account_id;
|
||||||
var $account_type;
|
|
||||||
var $data = Array();
|
var $data = Array();
|
||||||
var $db;
|
var $db;
|
||||||
|
|
||||||
@ -36,14 +35,9 @@
|
|||||||
{
|
{
|
||||||
global $phpgw, $phpgw_info;
|
global $phpgw, $phpgw_info;
|
||||||
$this->db = $phpgw->db;
|
$this->db = $phpgw->db;
|
||||||
if ($account_id == ""){
|
if ($account_id == ""){ $account_id = $phpgw_info["user"]["account_id"]; }
|
||||||
$this->account_id = $phpgw_info["user"]["account_id"];
|
elseif (gettype($account_id) == "string") { $account_id = $phpgw->accounts->name2id($account_id); }
|
||||||
} elseif (is_long($account_id)) {
|
|
||||||
$this->account_id = $account_id;
|
$this->account_id = $account_id;
|
||||||
} elseif(is_string($account_id)) {
|
|
||||||
$this->account_id = $phpgw->accounts->name2id($account_id);
|
|
||||||
}
|
|
||||||
$this->account_type = $phpgw->accounts->get_type($account_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
|
Loading…
Reference in New Issue
Block a user