[Fusionforge-commits] r8091 - in trunk/gforge/www: frs people trove

Julien HEYMAN jheyman at libremir.placard.fr.eu.org
Thu Sep 3 19:56:11 CEST 2009


Author: jheyman
Date: 2009-09-03 19:56:10 +0200 (Thu, 03 Sep 2009)
New Revision: 8091

Modified:
   trunk/gforge/www/frs/download.php
   trunk/gforge/www/people/editjob.php
   trunk/gforge/www/people/editprofile.php
   trunk/gforge/www/people/people_utils.php
   trunk/gforge/www/trove/TroveCategory.class.php
Log:
Fixed syntax errors (buildbot)

Modified: trunk/gforge/www/frs/download.php
===================================================================
--- trunk/gforge/www/frs/download.php	2009-09-03 17:21:06 UTC (rev 8090)
+++ trunk/gforge/www/frs/download.php	2009-09-03 17:56:10 UTC (rev 8091)
@@ -106,7 +106,7 @@
 
 	$ip=getStringFromServer('REMOTE_ADDR');
 	$res=db_query_params("INSERT INTO frs_dlstats_file (ip_address,file_id,month,day,user_id) 
-		VALUES ($1, $2, $3, $4, $5)"; array($ip,$file_id,date('Ym'),date('d'),$us));
+		VALUES ($1, $2, $3, $4, $5)", array($ip,$file_id,date('Ym'),date('d'),$us));
 } else {
 	Header("Status: 404");
 }

Modified: trunk/gforge/www/people/editjob.php
===================================================================
--- trunk/gforge/www/people/editjob.php	2009-09-03 17:21:06 UTC (rev 8090)
+++ trunk/gforge/www/people/editjob.php	2009-09-03 17:56:10 UTC (rev 8091)
@@ -131,7 +131,7 @@
 		}
 
 		if (people_verify_job_group($job_id,$group_id)) {
-			$result = db_query_params="DELETE FROM people_job_inventory WHERE job_id=$1 AND job_inventory_id=$2", array($job_id, $job_inventory_id));
+			$result = db_query_params("DELETE FROM people_job_inventory WHERE job_id=$1 AND job_inventory_id=$2", array($job_id, $job_inventory_id));
 			if (!$result || db_affected_rows($result) < 1) {
 				$feedback .= _('JOB skill delete FAILED');
 				echo db_error();

Modified: trunk/gforge/www/people/editprofile.php
===================================================================
--- trunk/gforge/www/people/editprofile.php	2009-09-03 17:21:06 UTC (rev 8090)
+++ trunk/gforge/www/people/editprofile.php	2009-09-03 17:56:10 UTC (rev 8091)
@@ -121,7 +121,7 @@
 					$keywords[$i] = str_replace("\n", " ", $keywords[$i]);  /* strip out any backspace characters. */
 					$title[$i] = str_replace("\n", " ", $title[$i]);
 					$result = db_query_params("UPDATE skills_data SET type=$1 ,title=$2 ,start=$3,finish=$4, keywords=$5 WHERE skills_data_id=$6",
-																		array($type[$i], $title[$i], $startY[$i]$startM[$i], $endY[$i]$endM[$i], $keywords[$i], $skill_edit[$i]));
+																		array($type[$i], $title[$i], $startY[$i].$startM[$i], $endY[$i].$endM[$i], $keywords[$i], $skill_edit[$i]));
 
 					if (!$result || db_affected_rows($result) < 1) {
 						echo db_error();

Modified: trunk/gforge/www/people/people_utils.php
===================================================================
--- trunk/gforge/www/people/people_utils.php	2009-09-03 17:21:06 UTC (rev 8090)
+++ trunk/gforge/www/people/people_utils.php	2009-09-03 17:56:10 UTC (rev 8091)
@@ -49,7 +49,7 @@
 	global $PEOPLE_SKILL;
 	if (!$PEOPLE_SKILL) {
 		//will be used many times potentially on a single page
-		$PEOPLE_SKILL=db_query_params("SELECT * FROM people_skill ORDER BY name ASC"; array());
+		$PEOPLE_SKILL=db_query_params("SELECT * FROM people_skill ORDER BY name ASC", array());
 	}
 	return html_build_select_box($PEOPLE_SKILL,$name,$checked);
 }

Modified: trunk/gforge/www/trove/TroveCategory.class.php
===================================================================
--- trunk/gforge/www/trove/TroveCategory.class.php	2009-09-03 17:21:06 UTC (rev 8090)
+++ trunk/gforge/www/trove/TroveCategory.class.php	2009-09-03 17:56:10 UTC (rev 8091)
@@ -110,7 +110,6 @@
 					version=$4
 				WHERE trove_cat_id=$5", 
 				array(htmlspecialchars($shortName), htmlspecialchars($fullName), htmlspecialchars($description), date('Ymd',time())."01", $this->categoryId));
-			);
 			if(!$result || db_affected_rows($result) != 1) {
 				$this->setError(_('ERROR'), _('Cannot update'));
 				db_rollback();




More information about the Fusionforge-commits mailing list