From: <lph...@us...> - 2012-09-11 18:28:30
|
Revision: 42907 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42907&view=rev Author: lphuberdeau Date: 2012-09-11 18:28:24 +0000 (Tue, 11 Sep 2012) Log Message: ----------- [KIL] Un-needed eval statement Modified Paths: -------------- branches/9.x/lib/wiki-plugins/wikiplugin_trackerlist.php Modified: branches/9.x/lib/wiki-plugins/wikiplugin_trackerlist.php =================================================================== --- branches/9.x/lib/wiki-plugins/wikiplugin_trackerlist.php 2012-09-11 18:03:03 UTC (rev 42906) +++ branches/9.x/lib/wiki-plugins/wikiplugin_trackerlist.php 2012-09-11 18:28:24 UTC (rev 42907) @@ -1597,7 +1597,7 @@ } } } - eval('$value='.implode('+', $amount).';'); + $value = array_sum($amount); if ($oper == 'avg') $value = round($value / count($amount)); $computedFields[$fieldId][] = array_merge(array('computedtype' => 'n', 'operator'=>$oper, 'value'=>$value), $passfields[$fieldId]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |