[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.soowner.php, 1.1.1.5
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.soowner.php, 1.1.1.5 |
Date: |
Sun, 23 May 2004 05:27:40 -0000 |
Update of /property
Modified Files:
Branch:
class.soowner.php
date: 2004/04/29 07:10:49; author: sigurdne; state: Exp; lines: +4 -3
Log Message:
db_addslashes
=====================================================================
Index: property/class.soowner.php
diff -u property/class.soowner.php:1.1.1.4 property/class.soowner.php:1.1.1.5
--- property/class.soowner.php:1.1.1.4 Sat Apr 24 19:39:54 2004
+++ property/class.soowner.php Thu Apr 29 07:10:49 2004
@@ -26,6 +26,7 @@
$this->db2 = $this->db;
$this->account = $GLOBALS['phpgw_data']['user']['id'];
$this->socommon =
CreateObject($this->currentapp.'_socommon');
+ $this->functions =
CreateObject($this->currentapp.'_functions');
$this->join = $this->socommon->join;
}
@@ -143,7 +144,7 @@
function add($owner)
{
- $owner['name'] =
$this->db->db_addslashes($owner['name']);
+ $owner['name'] =
$this->functions->db_addslashes($owner['name']);
$GLOBALS['phpgw']->db->Execute("INSERT INTO fm_owner
(entry_date,remark,abid,org_name,category) "
. "VALUES ('" . time() . "','" .
$owner['remark'] . "','" . $owner['abid'] . "','" . $owner['org_name']
@@ -156,7 +157,7 @@
function edit($owner)
{
- $owner['name'] =
$this->db->db_addslashes($owner['name']);
+ $owner['name'] =
$this->functions->db_addslashes($owner['name']);
$GLOBALS['phpgw']->db->Execute("UPDATE fm_owner set
remark='" . $owner['remark'] . "', entry_date='" . time() . "', abid='" .
$owner['abid'] . "', org_name='" . $owner['org_name'] . "', category='"
. $owner['cat_id'] . "'
WHERE owner_id=" . intval($owner['owner_id']));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.soowner.php, 1.1.1.5,
nomail <=