mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fix undefined array index warning
This commit is contained in:
@@ -68,6 +68,12 @@ class DXCC extends CI_Model {
|
||||
}
|
||||
|
||||
// update stats
|
||||
if (!isset($results[$row->COL_COUNTRY]))
|
||||
$results[$row->COL_COUNTRY] = [];
|
||||
|
||||
if (!isset($results[$row->COL_COUNTRY][$row->COL_BAND]))
|
||||
$results[$row->COL_COUNTRY][$row->COL_BAND] = 0;
|
||||
|
||||
$results[$row->COL_COUNTRY][$row->COL_BAND] += $row->cnt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user