URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13789>
Summary: Error produced by hook upon account deletion
Project: phpGroupWare
Submitted by: cafefroid
Submitted on: mer 13.07.2005 à 20:27
Category: API - Preferences
Item Group: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Component Version: None
Platform Version: None
Reproducibility: Every Time
Planned Release: None
Fixed Release:
_______________________________________________________
Details:
hook_deleteaccount.inc.php generates an error when used with php5 and
register_globals = off
A simple way to fix this issue :
Change this line :
$GLOBALS['phpgw']->db->query('DELETE FROM phpgw_preferences WHERE
preference_owner='.$GLOBALS['HTTP_POST_VARS']['account_id'],__LINE__,__FILE__);
To :
$GLOBALS['phpgw']->db->query('DELETE FROM phpgw_preferences WHERE
preference_owner='.$_REQUEST['account_id'],__LINE__,__FILE__);
I know php5 is not officially supported yet but any step in that direction
must be apreciated :-P
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
cafefroid |
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13789>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
_______________________________________________
Phpgroupware-tracker mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-tracker