[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] admin/inc hook_deleteaccount.inc.php,1.4.4.1
From: |
skwashd |
Subject: |
[Phpgroupware-cvs] admin/inc hook_deleteaccount.inc.php,1.4.4.1 |
Date: |
Sun, 4 Dec 2005 05:45:00 +0100 |
Update of admin/inc
Modified Files:
Branch: Version-0_9_16-branch
hook_deleteaccount.inc.php lines: +5 -5
Log Message:
globals and php5 - fixes bug #13789
====================================================
Index: admin/inc/hook_deleteaccount.inc.php
diff -u admin/inc/hook_deleteaccount.inc.php:1.4
admin/inc/hook_deleteaccount.inc.php:1.4.4.1
--- admin/inc/hook_deleteaccount.inc.php:1.4 Tue Nov 27 04:53:17 2001
+++ admin/inc/hook_deleteaccount.inc.php Sun Dec 4 04:45:02 2005
@@ -12,12 +12,12 @@
/* $Id$ */
- if($GLOBALS['HTTP_POST_VARS']['account_id'])
+ if ( isset($_POST['account_id']) && intval($_POST['account_id']) > 0 )
{
-
$GLOBALS['phpgw']->accounts->delete($GLOBALS['HTTP_POST_VARS']['account_id']);
+ $GLOBALS['phpgw']->accounts->delete($_POST['account_id']);
$GLOBALS['phpgw']->db->lock(Array('phpgw_acl'));
- $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->query('DELETE FROM phpgw_acl WHERE
acl_location=' . intval($_POST['account_id'])
+ . ' OR acl_account = ' . intval($_POST['account_id'])
,__LINE__, __FILE__);
$GLOBALS['phpgw']->db->unlock();
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] admin/inc hook_deleteaccount.inc.php,1.4.4.1,
skwashd <=