[Vtigercrm-commits] [vtiger-commits] r9168 - /vtigercrm/trunk/modules/Users/Authenticate.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Aug 28 15:37:22 EDT 2006
Author: richie
Date: Mon Aug 28 13:37:15 2006
New Revision: 9168
Log:
Support for PostGres DB done
Modified:
vtigercrm/trunk/modules/Users/Authenticate.php
Modified: vtigercrm/trunk/modules/Users/Authenticate.php
==============================================================================
--- vtigercrm/trunk/modules/Users/Authenticate.php (original)
+++ vtigercrm/trunk/modules/Users/Authenticate.php Mon Aug 28 13:37:15 2006
@@ -46,9 +46,18 @@
$auditrecord = '';
else
$auditrecord = $record;
-
- $date_var = date('YmdHis');
- $query = "insert into vtiger_audit_trial values(".$adb->getUniqueID('vtiger_audit_trial').",".$focus->id.",'Users','Authenticate','',$date_var)";
+
+ if( $adb->dbType = "pgsql")
+ {
+ $date_var = date('Y-m-d H:i:s');
+ $query = "insert into vtiger_audit_trial values(".$adb->getUniqueID('vtiger_audit_trial').",".$focus->id.",'Users','Authenticate','','$date_var')";
+ }
+ else
+ {
+
+ $date_var = date('YmdHis');
+ $query = "insert into vtiger_audit_trial values(".$adb->getUniqueID('vtiger_audit_trial').",".$focus->id.",'Users','Authenticate','',$date_var)";
+ }
$adb->query($query);
}
More information about the vtigercrm-commits
mailing list