Skip to content

Commit

Permalink
reset-inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Apr 16, 2024
1 parent 0ab2f15 commit 69f28b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,8 @@ public function resetinspection()
$data['inspection'] = $inspections[0];
$inspection = $inspections[0];
$dir ="/home/site/wwwroot/assets/pdfs/";
$grfile = $dir.$inspection->$filename_inspection;
$enfile = $dir.$inspection->$en_filename_inspection;
$grfile = $dir.$inspection->filename_inspection;
$enfile = $dir.$inspection->en_filename_inspection;

if (unlink($grfile) && unlink($enfile)) {
$updinsp['status_inspection'] = 0;
Expand Down

0 comments on commit 69f28b2

Please sign in to comment.