mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 11:09:04 +01:00
Should fix this for GLOBALS
This commit is contained in:
parent
86adabb752
commit
1ebc3e04ba
@ -14,12 +14,12 @@
|
||||
|
||||
$contacts = CreateObject('phpgwapi.contacts');
|
||||
|
||||
if(intval($GLOBALS['new_owner'])==0)
|
||||
if(intval($GLOBALS['HTTP_POST_VARS']['new_owner'])==0)
|
||||
{
|
||||
$contacts->delete_all(intval($GLOBALS['account_id']));
|
||||
$contacts->delete_all(intval($GLOBALS['HTTP_POST_VARS']['account_id']));
|
||||
}
|
||||
else
|
||||
{
|
||||
$contacts->change_owner(intval($GLOBALS['account_id']),intval($GLOBALS['new_owner']));
|
||||
$contacts->change_owner(intval($GLOBALS['HTTP_POST_VARS']['account_id']),intval($GLOBALS['HTTP_POST_VARS']['new_owner']));
|
||||
}
|
||||
?>
|
||||
|
@ -10,21 +10,16 @@
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
/* $Id$ */
|
||||
|
||||
// Delete all records for a user
|
||||
if (floor(phpversion()) == 4)
|
||||
{
|
||||
global $account_id, $new_owner;
|
||||
}
|
||||
|
||||
// Delete all records for a user
|
||||
$cal = CreateObject('calendar.bocalendar');
|
||||
|
||||
if(intval($new_owner)==0)
|
||||
if(intval($GLOBALS['HTTP_POST_VARS']['new_owner'])==0)
|
||||
{
|
||||
$cal->delete_calendar(intval($account_id));
|
||||
$cal->delete_calendar(intval($GLOBALS['HTTP_POST_VARS']['account_id']));
|
||||
}
|
||||
else
|
||||
{
|
||||
$cal->change_owner(intval($account_id),intval($new_owner));
|
||||
$cal->change_owner(intval($GLOBALS['HTTP_POST_VARS']['account_id']),intval($GLOBALS['HTTP_POST_VARS']['new_owner']));
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user