phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] projects/inc hook_deleteaccount.inc.php, 1.1.2.1.2.1


From: skwashd
Subject: [Phpgroupware-cvs] projects/inc hook_deleteaccount.inc.php, 1.1.2.1.2.1
Date: Sun, 4 Dec 2005 05:45:00 +0100

Update of projects/inc

Modified Files:
     Branch: Version-0_9_16-branch
            hook_deleteaccount.inc.php lines: +4 -4

Log Message:
globals and php5 - fixes bug #13789

====================================================
Index: projects/inc/hook_deleteaccount.inc.php
diff -u projects/inc/hook_deleteaccount.inc.php:1.1 
projects/inc/hook_deleteaccount.inc.php:1.1.2.1.2.1
--- projects/inc/hook_deleteaccount.inc.php:1.1 Thu Jan  3 15:36:49 2002
+++ projects/inc/hook_deleteaccount.inc.php     Sun Dec  4 04:45:02 2005
@@ -13,12 +13,12 @@
        // Delete all records for a user
        $pro = CreateObject('projects.boprojects');

-       if(intval($GLOBALS['HTTP_POST_VARS']['new_owner']) == 0)
+       if(intval($_POST['new_owner']) == 0)
        {
-               
$pro->delete_pa('co',intval($GLOBALS['HTTP_POST_VARS']['account_id']),True);
+               $pro->delete_pa('account',intval($_POST['account_id']),False);
        }
        else
        {
-               
$pro->change_owner(intval($GLOBALS['HTTP_POST_VARS']['account_id']),intval($GLOBALS['HTTP_POST_VARS']['new_owner']));
+               
$pro->change_owner(intval($_POST['account_id']),intval($_POST['new_owner']));
        }
 ?>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]