mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[WAC Award] Added a check before unset
This commit is contained in:
@@ -57,7 +57,9 @@ class Wac extends CI_Model{
|
||||
if ($postdata['notworked'] == NULL) {
|
||||
foreach ($this->validContinents as $cont) {
|
||||
if ($wac[$cont]['count'] == 0) {
|
||||
unset($bandWac[$cont]);
|
||||
if (isset($bandWac)) {
|
||||
unset($bandWac[$cont]);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user