fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10192] property: formatting


From: Sigurd Nes
Subject: [Fmsystem-commits] [10192] property: formatting
Date: Wed, 10 Oct 2012 09:05:51 +0000

Revision: 10192
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10192
Author:   sigurdne
Date:     2012-10-10 09:05:51 +0000 (Wed, 10 Oct 2012)
Log Message:
-----------
property: formatting

Modified Paths:
--------------
    trunk/property/inc/class.historylog.inc.php

Modified: trunk/property/inc/class.historylog.inc.php
===================================================================
--- trunk/property/inc/class.historylog.inc.php 2012-10-10 09:05:31 UTC (rev 
10191)
+++ trunk/property/inc/class.historylog.inc.php 2012-10-10 09:05:51 UTC (rev 
10192)
@@ -123,7 +123,7 @@
                }
 
 
-               function add($status,$record_id,$new_value,$old_value 
='',$attrib_id='', $date='',$detail_id='')
+               function add($status,$record_id,$new_value,$old_value 
='',$attrib_id='', $date=0,$detail_id='')
                {
                        $attrib_id_field = $this->attrib_id_field;
                        $attrib_id_value = (isset($attrib_id) && $attrib_id ? 
",$attrib_id" : '');
@@ -139,9 +139,9 @@
                                $timestamp = date($this->db->datetime_format());
                        }
 
-                       $this->db->query("insert into $this->table 
(history_record_id,"
+                       $this->db->query("INSERT INTO {$this->table} 
(history_record_id,"
                                . 
"history_appname,history_owner,history_status,history_new_value, 
history_old_value, history_timestamp $attrib_id_field $detail_id_field) "
-                               . "values ('$record_id','" . $this->appname . 
"','"
+                               . "values ('{$record_id}','{$this->appname}','"
                                . $this->account . "','$status','"
                                . $this->db->db_addslashes($new_value) . "','"
                                . $this->db->db_addslashes($old_value) . "','" 
. $timestamp




reply via email to

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