kopia lustrzana https://github.com/magicbug/Cloudlog
fix undefined array index warning
rodzic
9e422756f9
commit
a311be9dd2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue