mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-19 17:38:06 +02:00
fix for php5
This commit is contained in:
parent
ab02fe9ee0
commit
021b1314c7
@ -61,7 +61,7 @@
|
|||||||
*/
|
*/
|
||||||
function acl($account_id = '')
|
function acl($account_id = '')
|
||||||
{
|
{
|
||||||
copyobj($GLOBALS['phpgw']->db,$this->db);
|
$this->db = clone($GLOBALS['phpgw']->db);
|
||||||
if ((int)$this->account_id != (int)$account_id)
|
if ((int)$this->account_id != (int)$account_id)
|
||||||
{
|
{
|
||||||
$this->account_id = get_account_id((int)$account_id,@$GLOBALS['phpgw_info']['user']['account_id']);
|
$this->account_id = get_account_id((int)$account_id,@$GLOBALS['phpgw_info']['user']['account_id']);
|
||||||
@ -653,7 +653,7 @@
|
|||||||
$account_id = get_account_id($accountid,$this->account_id);
|
$account_id = get_account_id($accountid,$this->account_id);
|
||||||
$cache_accountid[$accountid] = $account_id;
|
$cache_accountid[$accountid] = $account_id;
|
||||||
}
|
}
|
||||||
$db2 = $this->db;
|
$db2 = clone($this->db);
|
||||||
$memberships = $GLOBALS['phpgw']->accounts->membership($account_id);
|
$memberships = $GLOBALS['phpgw']->accounts->membership($account_id);
|
||||||
$sql = "select acl_appname, acl_rights from phpgw_acl where acl_location = 'run' and "
|
$sql = "select acl_appname, acl_rights from phpgw_acl where acl_location = 'run' and "
|
||||||
. 'acl_account in ';
|
. 'acl_account in ';
|
||||||
@ -693,7 +693,7 @@
|
|||||||
*/
|
*/
|
||||||
function get_grants($app='')
|
function get_grants($app='')
|
||||||
{
|
{
|
||||||
$db2 = $this->db;
|
$db2 = clone($this->db);
|
||||||
|
|
||||||
if ($app=='')
|
if ($app=='')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user