[Fusionforge-commits] r10772 - in trunk/src: common/survey www/tracker
Alain Peyrat
aljeux at libremir.placard.fr.eu.org
Wed Sep 29 20:08:05 CEST 2010
Author: aljeux
Date: 2010-09-29 20:08:05 +0200 (Wed, 29 Sep 2010)
New Revision: 10772
Modified:
trunk/src/common/survey/SurveyResponseFactory.class.php
trunk/src/www/tracker/browse.php
trunk/src/www/tracker/downloadcsv.php
trunk/src/www/tracker/ind.php
Log:
Fix PHP warnings.
Modified: trunk/src/common/survey/SurveyResponseFactory.class.php
===================================================================
--- trunk/src/common/survey/SurveyResponseFactory.class.php 2010-09-29 07:56:49 UTC (rev 10771)
+++ trunk/src/common/survey/SurveyResponseFactory.class.php 2010-09-29 18:08:05 UTC (rev 10772)
@@ -159,7 +159,7 @@
* @return int the number of survey responses
*/
function getNumberOfSurveyResponses() {
- $arr = &$this->getSurveyResponses();
+ $arr = $this->getSurveyResponses();
if (!$arr || !is_array($arr)) {
return 0;
}
Modified: trunk/src/www/tracker/browse.php
===================================================================
--- trunk/src/www/tracker/browse.php 2010-09-29 07:56:49 UTC (rev 10771)
+++ trunk/src/www/tracker/browse.php 2010-09-29 18:08:05 UTC (rev 10772)
@@ -452,7 +452,7 @@
}
$i=0;
- $efarr =& $ath->getExtraFields(ARTIFACT_EXTRAFIELDTYPE_STATUS);
+ $efarr = $ath->getExtraFields(ARTIFACT_EXTRAFIELDTYPE_STATUS);
$keys=array_keys($efarr);
$field_id = $keys[0];
$states = $ath->getExtraFieldElements($field_id);
Modified: trunk/src/www/tracker/downloadcsv.php
===================================================================
--- trunk/src/www/tracker/downloadcsv.php 2010-09-29 07:56:49 UTC (rev 10771)
+++ trunk/src/www/tracker/downloadcsv.php 2010-09-29 18:08:05 UTC (rev 10772)
@@ -52,7 +52,7 @@
//
// Show the extra fields
//
-$ef =& $ath->getExtraFields();
+$ef = $ath->getExtraFields();
$keys=array_keys($ef);
for ($i=0; $i<count($keys); $i++) {
echo ';"'.$ef[$keys[$i]]['field_name'].'"';
@@ -77,7 +77,7 @@
//
// Show the extra fields
//
- $efd =& $at_arr[$i]->getExtraFieldDataText();
+ $efd = $at_arr[$i]->getExtraFieldDataText();
foreach ( $efd as $efd_pair ) {
$value = $efd_pair["value"];
echo ';"'. fix4csv($value) .'"';
@@ -85,9 +85,9 @@
}
function fix4csv ($value) {
- $value =& util_unconvert_htmlspecialchars( $value );
- $value =& str_replace("\r\n", "\n", $value);
- $value =& str_replace('"', '""', $value);
+ $value = util_unconvert_htmlspecialchars( $value );
+ $value = str_replace("\r\n", "\n", $value);
+ $value = str_replace('"', '""', $value);
return $value;
}
Modified: trunk/src/www/tracker/ind.php
===================================================================
--- trunk/src/www/tracker/ind.php 2010-09-29 07:56:49 UTC (rev 10771)
+++ trunk/src/www/tracker/ind.php 2010-09-29 18:08:05 UTC (rev 10772)
@@ -31,7 +31,7 @@
exit_error(_('Could Not Get ArtifactTypeFactory'),'tracker');
}
-$at_arr =& $atf->getArtifactTypes();
+$at_arr = $atf->getArtifactTypes();
if ($at_arr === false) {
exit_permission_denied('tracker');
}
More information about the Fusionforge-commits
mailing list