Fixed a few bugs in the WAS award

This commit is contained in:
AndreasK79
2020-03-31 07:43:33 +02:00
parent 4f467e7256
commit bfe1a40260
2 changed files with 6 additions and 2 deletions

View File

@@ -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");

View File

@@ -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) {