fix typo and add helpers when creating new trainings for the whole month
This commit is contained in:
@@ -200,8 +200,8 @@ class training {
|
||||
}
|
||||
}
|
||||
//itt rakjuk be a segédedzőket
|
||||
if (isset($_training_value_array['helpets'])) {
|
||||
foreach ($_training_value_array['helpets'] as $coach_id) {
|
||||
if (isset($_training_value_array['helpers'])) {
|
||||
foreach ($_training_value_array['helpers'] as $coach_id) {
|
||||
# beilleszt minden edzőt ehhez az edzéshez
|
||||
$sql->insert_into('training_coach', array('trc_training_tr_id' => $new_tr_id, 'trc_coach_uc_id' => $coach_id, 'trc_helper' => 1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user