[Fusionforge-commits] r7873 - trunk/gforge/www/reporting

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Jun 19 11:57:14 CEST 2009


Author: lolando
Date: 2009-06-19 11:57:13 +0200 (Fri, 19 Jun 2009)
New Revision: 7873

Modified:
   trunk/gforge/www/reporting/timeadd.php
Log:
Fixing a syntax error

Modified: trunk/gforge/www/reporting/timeadd.php
===================================================================
--- trunk/gforge/www/reporting/timeadd.php	2009-06-19 09:57:06 UTC (rev 7872)
+++ trunk/gforge/www/reporting/timeadd.php	2009-06-19 09:57:13 UTC (rev 7873)
@@ -74,13 +74,14 @@
 	if (getStringFromRequest('delete')) {
 		if ($project_task_id && $report_date && $old_time_code) {
 			$res=db_query_params ('DELETE FROM rep_time_tracking
-				WHERE user_id='".user_getid()."'
-				AND report_date=$1
-				AND project_task_id=$2
-				AND time_code=$3',
-			array($report_date,
-				$project_task_id,
-				$old_time_code));
+				WHERE user_id=$1
+				AND report_date=$2
+				AND project_task_id=$3
+				AND time_code=$4',
+					      array(user_getid(),
+						    $report_date,
+						    $project_task_id,
+						    $old_time_code));
 			if (!$res || db_affected_rows($res) < 1) {
 				exit_error('Error',db_error());
 			} else {




More information about the Fusionforge-commits mailing list