mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fix total for map
This commit is contained in:
@@ -204,12 +204,12 @@ class CQ extends CI_Model{
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for ($i = 1; $i <= 40; $i++) {
|
for ($i = 1; $i <= 40; $i++) {
|
||||||
if ($cqZ[$i]['count'] == 0) {
|
if (isset($totalConfirmedZones[$i])) {
|
||||||
$mapZones[$i-1] = '-'; // Not worked
|
|
||||||
} elseif (isset($totalConfirmedZones[$i])) {
|
|
||||||
$mapZones[$i-1] = 'C'; // Confirmed
|
$mapZones[$i-1] = 'C'; // Confirmed
|
||||||
} else {
|
} else if (isset($totalWorkedZones[$i])) {
|
||||||
$mapZones[$i-1] = 'W'; // Worked but not confirmed
|
$mapZones[$i-1] = 'W'; // Worked but not confirmed
|
||||||
|
} else {
|
||||||
|
$mapZones[$i-1] = '-'; // Not worked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user