Fixed a few bugs in the WAS award

这个提交包含在:
AndreasK79 2020-03-31 07:43:33 +02:00
父节点 4f467e7256
当前提交 bfe1a40260
共有 2 个文件被更改,包括 6 次插入2 次删除

查看文件

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