forked from extern/egroupware
Fix to work with register_globals off, also tested with it on
This commit is contained in:
parent
ad4a94139c
commit
1b6c84d688
@ -9,13 +9,15 @@
|
|||||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||||
* option) any later version. *
|
* option) any later version. *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
if($GLOBALS['account_id'])
|
if($GLOBALS['HTTP_POST_VARS']['account_id'])
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw']->accounts->delete($GLOBALS['account_id']);
|
$GLOBALS['phpgw']->accounts->delete($GLOBALS['HTTP_POST_VARS']['account_id']);
|
||||||
$GLOBALS['phpgw']->db->lock(Array('phpgw_acl'));
|
$GLOBALS['phpgw']->db->lock(Array('phpgw_acl'));
|
||||||
$GLOBALS['phpgw']->db->query("DELETE FROM phpgw_acl WHERE acl_location='".$GLOBALS['account_id']."' OR acl_account=".$GLOBALS['account_id'],__LINE__,__FILE__);
|
$GLOBALS['phpgw']->db->query("DELETE FROM phpgw_acl WHERE acl_location='" . $GLOBALS['HTTP_POST_VARS']['account_id']
|
||||||
|
. "' OR acl_account=".$GLOBALS['HTTP_POST_VARS']['account_id'],__LINE__,__FILE__);
|
||||||
$GLOBALS['phpgw']->db->unlock();
|
$GLOBALS['phpgw']->db->unlock();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user