phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/class.sob_account.php, 1.1.1.5


From: nomail
Subject: [Phpgroupware-cvs] property/class.sob_account.php, 1.1.1.5
Date: Sun, 23 May 2004 10:28:37 -0000

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

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

Log Message:
db_addslashes
=====================================================================
Index: property/class.sob_account.php
diff -u property/class.sob_account.php:1.1.1.4 
property/class.sob_account.php:1.1.1.5
--- property/class.sob_account.php:1.1.1.4      Sat Apr 24 19:39:54 2004
+++ property/class.sob_account.php      Thu Apr 29 07:10:49 2004
@@ -21,9 +21,10 @@
                function property_sob_account()
                {
                        $this->currentapp       = 'property'; 
//$GLOBALS['phpgw_data']['flags']['req_app'];
-                       $this->db               = $GLOBALS['phpgw']->db;
-                       $this->db2              = $this->db;
-                       $this->account  = $GLOBALS['phpgw_data']['user']['id'];
+                       $this->db                       = $GLOBALS['phpgw']->db;
+                       $this->db2                      = $this->db;
+                       $this->account          = 
$GLOBALS['phpgw_data']['user']['id'];
+                       $this->functions        = 
CreateObject($this->currentapp.'_functions');
                }
 
                function read($data)
@@ -116,7 +117,7 @@
                {
                        $table = 'fm_b_account';
 
-                       $b_account['descr'] = 
$this->db->db_addslashes($b_account['descr']);
+                       $b_account['descr'] = 
$this->functions->db_addslashes($b_account['descr']);
 
                        $GLOBALS['phpgw']->db->Execute("INSERT INTO $table (id, 
descr,grouping) "
                                . "VALUES ('" . $b_account['id'] . "','" . 
$b_account['descr']. "','" . substr($b_account['id'],0,2) . "')");
@@ -130,7 +131,7 @@
 
                        $table = 'fm_b_account';
 
-                       $b_account['descr'] = 
$this->db->db_addslashes($b_account['descr']);
+                       $b_account['descr'] = 
$this->functions->db_addslashes($b_account['descr']);
 
                        $GLOBALS['phpgw']->db->Execute("UPDATE $table set 
descr='" . $b_account['descr']
                                                        . "' WHERE id='" . 
$b_account['id']. "'");




reply via email to

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