[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [19047] update the phpgw::get_var method
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] [19047] update the phpgw::get_var method |
Date: |
Wed, 04 Feb 2009 17:59:15 +0000 |
Revision: 19047
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19047
Author: Caeies
Date: 2009-02-04 17:59:14 +0000 (Wed, 04 Feb 2009)
Log Message:
-----------
update the phpgw::get_var method
Modified Paths:
--------------
core/trunk/todo/inc/hook_deleteaccount.inc.php
Modified: core/trunk/todo/inc/hook_deleteaccount.inc.php
===================================================================
--- core/trunk/todo/inc/hook_deleteaccount.inc.php 2009-02-04 17:58:49 UTC
(rev 19046)
+++ core/trunk/todo/inc/hook_deleteaccount.inc.php 2009-02-04 17:59:14 UTC
(rev 19047)
@@ -14,8 +14,8 @@
$db =& $GLOBALS['phpgw']->db;
$db->lock('phpgw_todo');
- $new_owner = intval(get_var('new_owner',Array('POST')));
- $account_id = intval(get_var('account_id',Array('POST')));
+ $new_owner = phpgw::get_var('new_owner', 'int', 'POST');
+ $account_id = phpgw::get_var('account_id', 'int', 'POST');
if($new_owner==0)
{
$db->query('DELETE FROM phpgw_todo WHERE todo_owner=' . (int)
$_POST['account_id'], __LINE__, __FILE__);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [19047] update the phpgw::get_var method,
Caeies <=