Skip to content

Commit

Permalink
Update inspectionform.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Jun 25, 2024
1 parent fbe6912 commit 4e406e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
$name_cp = $langprefix."name_cp";
$helptext_cp = $langprefix."helptext_cp";

if ($inspection->fueltyp_vhcl != "electric" || $inspection->fueltyp_vhcl != "pluginpetrol" || $inspection->fueltyp_vhcl != "plugindiesel") {
$ev = array("electric", "pluginpetrol", "plugindiesel");
if (!in_array($inspection->fueltyp_vhcl, $ev)) {
unset($checkpoints[0]);
}

Expand Down

0 comments on commit 4e406e6

Please sign in to comment.