Commit 1c7c6ee7 authored by Nemo Ma's avatar Nemo Ma

Update fireseedevent.func.php

parent c478ce70
......@@ -92,15 +92,11 @@ function sumintensity($playerID){
//process intensity SUM
#Get all Intensity
$checkGivenPlayerIntensity = "SELECT * FROM {$tablepre}players WHERE type = 92 AND clbstatusc = $playerID";
$checkGivenPlayerIntensity = "SELECT SUM(clbstatusd) FROM {$tablepre}players WHERE type = 92 AND clbstatusc = $playerID";
$givenPlayerIntensity = $db->query($checkGivenPlayerIntensity);
$idata = $db->fetch_array($givenPlayerIntensity);
#Sum Intensity
$sum = 0;
while ($idata){
$sum += $idata['clbstatusd'];
}
#Sum Intensity
$sum = $givenPlayerIntensity['SUM(clbstatusd)'];
//DEBUG
$log .= " <span class=\"yellow\">$sum</span> INTENSITY<br>";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment