phpgroupware-tracker
[Top][All Lists]
Advanced

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

[Phpgroupware-tracker] [bug #13789] Error produced by hook upon account


From: Charles Martin
Subject: [Phpgroupware-tracker] [bug #13789] Error produced by hook upon account deletion
Date: Wed, 13 Jul 2005 20:27:43 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

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/





reply via email to

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