bugfixes#1
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
if ($this->is_id()) {
|
||||
//először ki kell törölni a coachokat
|
||||
$delete_coach_query = "DELETE FROM training_coach WHERE trc_training_tr_id = " . $this->get_id() . ";";
|
||||
$sql->execute_query($delete_coach_query);
|
||||
$delete_query = "DELETE FROM training WHERE tr_id = " . $this->get_id() . ";";
|
||||
$sql->execute_query($delete_query);
|
||||
header("Location: /admin/trainings");
|
||||
|
||||
Reference in New Issue
Block a user