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

Update fireseedevent.func.php

parent c478ce70
...@@ -92,15 +92,11 @@ function sumintensity($playerID){ ...@@ -92,15 +92,11 @@ function sumintensity($playerID){
//process intensity SUM //process intensity SUM
#Get all Intensity #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); $givenPlayerIntensity = $db->query($checkGivenPlayerIntensity);
$idata = $db->fetch_array($givenPlayerIntensity);
#Sum Intensity
$sum = 0;
while ($idata){ #Sum Intensity
$sum += $idata['clbstatusd']; $sum = $givenPlayerIntensity['SUM(clbstatusd)'];
}
//DEBUG //DEBUG
$log .= " <span class=\"yellow\">$sum</span> INTENSITY<br>"; $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