[Fusionforge-commits] r12011 - branches/Branch_5_1/src/plugins/scmsvn/common

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Jan 17 16:20:37 CET 2011


Author: lolando
Date: 2011-01-17 16:20:35 +0100 (Mon, 17 Jan 2011)
New Revision: 12011

Modified:
   branches/Branch_5_1/src/plugins/scmsvn/common/SVNPlugin.class.php
Log:
Fixed PHP notices

Modified: branches/Branch_5_1/src/plugins/scmsvn/common/SVNPlugin.class.php
===================================================================
--- branches/Branch_5_1/src/plugins/scmsvn/common/SVNPlugin.class.php	2011-01-17 10:43:21 UTC (rev 12010)
+++ branches/Branch_5_1/src/plugins/scmsvn/common/SVNPlugin.class.php	2011-01-17 15:20:35 UTC (rev 12011)
@@ -441,8 +441,8 @@
 					continue;
 				}
 
-				$uu = $usr_updates[$user] ? $usr_updates[$user] : 0 ;
-				$ua = $usr_adds[$user] ? $usr_adds[$user] : 0 ;
+				$uu = isset($usr_updates[$user]) ? $usr_updates[$user] : 0 ;
+				$ua = isset($usr_adds[$user]) ? $usr_adds[$user] : 0 ;
 				if ($uu > 0 || $ua > 0) {
 					if (!db_query_params ('INSERT INTO stats_cvs_user (month,day,group_id,user_id,commits,adds) VALUES ($1,$2,$3,$4,$5,$6)',
 							      array ($month_string,
@@ -567,12 +567,12 @@
 			if ($attrs['ACTION'] == "M") {
 				$updates++;
 				if ($last_user) {
-					$usr_updates[$last_user]++;
+					$usr_updates[$last_user] = isset($usr_updates[$last_user]) ? ($usr_updates[$last_user]+1) : 0 ;
 				}
 			} elseif ($attrs['ACTION'] == "A") {
 				$adds++;
 				if ($last_user) {
-					$usr_adds[$last_user]++;
+					$usr_adds[$last_user] = isset($usr_adds[$last_user]) ? ($usr_adds[$last_user]+1) : 0 ;
 				}
 			}
 		}




More information about the Fusionforge-commits mailing list