mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fixed a few bugs in the WAS award
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user