phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] ged/inc class.ged_dm.inc.php


From: Pascal Vilarem
Subject: [Phpgroupware-cvs] ged/inc class.ged_dm.inc.php
Date: Fri, 09 Nov 2007 15:40:09 +0000

CVSROOT:        /sources/phpgroupware
Module name:    ged
Changes by:     Pascal Vilarem <maat>   07/11/09 15:40:09

Modified files:
        inc            : class.ged_dm.inc.php 

Log message:
        fixbug: cleaned sql for store history

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/ged/inc/class.ged_dm.inc.php?cvsroot=phpgroupware&r1=1.56&r2=1.57

Patches:
Index: class.ged_dm.inc.php
===================================================================
RCS file: /sources/phpgroupware/ged/inc/class.ged_dm.inc.php,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -b -r1.56 -r1.57
--- class.ged_dm.inc.php        9 Nov 2007 15:15:17 -0000       1.56
+++ class.ged_dm.inc.php        9 Nov 2007 15:40:08 -0000       1.57
@@ -2840,7 +2840,7 @@
                $version_info=$this->get_version_info($version_id);
                
                $sql="INSERT INTO ".$this->tables['history']. "(element_id, 
version_id, status, logdate, action, account_id, comment, ip, agent) ";
-               $sql.="VALUES (".$version_info['element_id'].", 
".$version_info['version_id'].", '".$version_info['status']."', '".time()."', 
'".$action."', ".intval($GLOBALS['phpgw_info']['user']['account_id']).", 
'".$comment."', 'ip', 'agent')";
+               $sql.="VALUES (".$version_info['element_id'].", 
".$version_info['version_id'].", '".$version_info['status']."', ".time().", 
'".$action."', ".intval($GLOBALS['phpgw_info']['user']['account_id']).", 
'".addslashes($comment)."', 'ip', 'agent')";
                
                $this->db->query($sql);
                $this->db->unlock();




reply via email to

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