phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/class.sop_of_town.php, 1.1.1.6


From: nomail
Subject: [Phpgroupware-cvs] property/class.sop_of_town.php, 1.1.1.6
Date: Sun, 23 May 2004 03:59:07 -0000

Update of /property
Modified Files:
        Branch: 
          class.sop_of_town.php

date: 2004/04/29 07:10:49;  author: sigurdne;  state: Exp;  lines: +4 -3

Log Message:
db_addslashes
=====================================================================
Index: property/class.sop_of_town.php
diff -u property/class.sop_of_town.php:1.1.1.5 
property/class.sop_of_town.php:1.1.1.6
--- property/class.sop_of_town.php:1.1.1.5      Sun Apr 25 19:38:25 2004
+++ property/class.sop_of_town.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;
                }
@@ -124,7 +125,7 @@
 
                function add($p_of_town)
                {
-                       $p_of_town['name'] = 
$this->db->db_addslashes($p_of_town['name']);
+                       $p_of_town['name'] = 
$this->functions->db_addslashes($p_of_town['name']);
 
                        $GLOBALS['phpgw']->db->Execute("INSERT INTO 
fm_part_of_town (name,district_id) "
                                . "VALUES ('" . $p_of_town['name']
@@ -137,7 +138,7 @@
 
                function edit($p_of_town)
                {
-                       $p_of_town['name'] = 
$this->db->db_addslashes($p_of_town['name']);
+                       $p_of_town['name'] = 
$this->functions->db_addslashes($p_of_town['name']);
 
                        $GLOBALS['phpgw']->db->Execute("UPDATE fm_part_of_town 
set name='" . $p_of_town['name'] . "', district_id='"
                                                        . 
$p_of_town['district_id'] . "' WHERE part_of_town_id=" . 
intval($p_of_town['part_of_town_id']));




reply via email to

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