phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] etemplate/doc/et_notes/inc hook_deleteaccount.inc.php


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

Update of etemplate/doc/et_notes/inc

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

Log Message:
globals and php5 - fixes bug #13789

====================================================
Index: etemplate/doc/et_notes/inc/hook_deleteaccount.inc.php
diff -u etemplate/doc/et_notes/inc/hook_deleteaccount.inc.php:1.1.2.1 
etemplate/doc/et_notes/inc/hook_deleteaccount.inc.php:1.1.2.2
--- etemplate/doc/et_notes/inc/hook_deleteaccount.inc.php:1.1.2.1       Sun Sep 
 7 01:26:41 2003
+++ etemplate/doc/et_notes/inc/hook_deleteaccount.inc.php       Sun Dec  4 
04:45:02 2005
@@ -20,16 +20,14 @@
        $db2 = $GLOBALS['phpgw']->db;
        $db2->lock($table_locks);

-       $new_owner = intval(get_var('new_owner',Array('POST')));
-       $account_id = intval(get_var('account_id',Array('POST')));
-       if($new_owner==0)
+       if ( $_POST['new_owner'] == 0 )
        {
-               $db2->query('DELETE FROM phpgw_et_notes WHERE 
note_owner='.$account_id,__LINE__,__FILE__);
+               $db2->query('DELETE FROM phpgw_et_notes WHERE note_owner = ' . 
intval($_POST['account_id']), __LINE__, __FILE__);
        }
        else
        {
-               $db2->query('UPDATE phpgw_et_notes SET note_owner='.$new_owner
-                       . ' WHERE note_owner='.$account_id,__LINE__,__FILE__);
+               $db2->query('UPDATE phpgw_et_notes SET note_owner=' . 
intval($_POST['new_owner'])
+                       . ' WHERE note_owner=' . intval($_POST['account_id']), 
__LINE__, __FILE__);
        }
        $db2->unlock();
 ?>






reply via email to

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