diff --git a/application/views/inspectionform.php b/application/views/inspectionform.php index ba64b67..8cb9fdf 100644 --- a/application/views/inspectionform.php +++ b/application/views/inspectionform.php @@ -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]); }