sql delete replaced by delete flag
log list (simple), log categories
minor bug fixes in css
This commit is contained in:
Ricsi
2016-12-30 18:00:05 +01:00
parent 664097a976
commit 5a78b09a38
39 changed files with 557 additions and 92 deletions

View File

@@ -1,8 +1,10 @@
<?php
if ($this->is_id()) {
$delete_query = "DELETE FROM user_coach WHERE ua_id = " . $this->get_id() . ";";
$sql->execute_query($delete_query);
//$delete_query = "DELETE FROM user_coach WHERE ua_id = " . $this->get_id() . ";";
//$sql->execute_query($delete_query);
$sql->update_table('user_coach', array('ua_deleted' => 1), array('ua_id' => $this->get_id()));
log::register('delete_coach', $this->get_id());
header("Location: /admin/coaches");
}