[Vtigercrm-commits] [vtiger-commits] r9369 - /vtigercrm/trunk/modules/Users/Authenticate.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Sep 9 04:44:09 EDT 2006
Author: richie
Date: Sat Sep 9 02:43:45 2006
New Revision: 9369
Log:
Postgres fixes by Jens done --By Don
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 Sat Sep 9 02:43:45 2006
@@ -47,17 +47,9 @@
else
$auditrecord = $record;
- 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 = $adb->formatDate(date('YmdHis'));
+ $query = "insert into vtiger_audit_trial values(".$adb->getUniqueID('vtiger_audit_trial').",".$focus->id.",'Users','Authenticate','',$date_var)";
- $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