Skip to content

Commit 9e3bf83

Browse files
committed
Changed column name back to current
1 parent 92a1190 commit 9e3bf83

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

class/TrainingModule.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function certify_training($operator, $staff){
7777
if ($results = $mysqli->query("
7878
SELECT *
7979
FROM `tm_enroll`
80-
WHERE tm_id = $this->tm_id AND operator = ".$staff->getOperator()." AND `revoked` = 'N'
80+
WHERE tm_id = $this->tm_id AND operator = ".$staff->getOperator()." AND `current` = 'Y'
8181
")){
8282
if( $results->num_rows == 1 || $staff->getRoleID() > 9) {
8383
//True when they have the related training
@@ -91,9 +91,9 @@ public function certify_training($operator, $staff){
9191

9292
if ($mysqli->query("
9393
INSERT INTO `tm_enroll`
94-
(`tm_id`, `operator`, `completed`, `staff_id`, `revoked`)
94+
(`tm_id`, `operator`, `completed`, `staff_id`, `current`)
9595
VALUES
96-
('$this->tm_id', '$operator', CURRENT_TIME(), '".$staff->getOperator()."', 'N');
96+
('$this->tm_id', '$operator', CURRENT_TIME(), '".$staff->getOperator()."', 'Y');
9797
")){
9898
return true;
9999
} elseif ( strpos($mysqli->error, "Duplicate") === 0) {

0 commit comments

Comments
 (0)