mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
Fixed a few bugs in the WAS award
This commit is contained in:
parent
4f467e7256
commit
bfe1a40260
2 changed files with 6 additions and 2 deletions
|
|
@ -259,7 +259,7 @@ class Logbook_model extends CI_Model {
|
|||
$this->db->where('COL_STATE', $state);
|
||||
$this->db->where_in('COL_DXCC', ['291', '6', '110']);
|
||||
if($band != "SAT") {
|
||||
$this->db->where('COL_BAND !=', 'SAT');
|
||||
$this->db->where('COL_PROP_MODE !=', 'SAT');
|
||||
$this->db->where('COL_BAND', $band);
|
||||
} else {
|
||||
$this->db->where('COL_PROP_MODE', "SAT");
|
||||
|
|
|
|||
|
|
@ -74,10 +74,14 @@ class was extends CI_Model {
|
|||
|
||||
$states = array(); // Used for keeping track of which states that are not worked
|
||||
|
||||
foreach ($stateArray as $state) { // Generating array for use in the table
|
||||
$states[$state]['count'] = 0; // Inits each state's count
|
||||
}
|
||||
|
||||
|
||||
foreach ($bands as $band) {
|
||||
foreach ($stateArray as $state) { // Generating array for use in the table
|
||||
$bandWas[$state][$band] = '-'; // Sets all to dash to indicate no result
|
||||
$states[$state]['count'] = 0; // Inits each state's count
|
||||
}
|
||||
|
||||
if ($postdata['worked'] != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue