|
From: <gem...@li...> - 2011-10-17 11:22:57
|
Revision: 105
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=105&view=rev
Author: mennodekker
Date: 2011-10-17 11:22:46 +0000 (Mon, 17 Oct 2011)
Log Message:
-----------
Removed some duplicate code that was replaced by a method
Modified Paths:
--------------
trunk/library/classes/Gems/Event/EventCalculations.php
Modified: trunk/library/classes/Gems/Event/EventCalculations.php
===================================================================
--- trunk/library/classes/Gems/Event/EventCalculations.php 2011-10-14 15:06:50 UTC (rev 104)
+++ trunk/library/classes/Gems/Event/EventCalculations.php 2011-10-17 11:22:46 UTC (rev 105)
@@ -209,16 +209,8 @@
protected function sumInt(array $tokenAnswers, $fieldNames)
{
if (is_string($fieldNames)) {
- $startName = $fieldNames;
- $fieldNames = array();
-
- foreach ($tokenAnswers as $fieldName => $value) {
- if (strpos($fieldName, $startName) !== false) {
- $fieldNames[] = $fieldName;
- }
- }
+ $fieldNames = $this->_arrayFindName($tokenAnswers, $fieldNames);
}
- // MUtil_Echo::track($fieldNames);
$sum = 0;
foreach ($fieldNames as $name) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|