Skip to content

A free open source IT asset/license management system

if statement order change

Godfrey M5f0b7f328c82
diff --git a/app/View/Label.php b/app/View/Label.php
index 21a8b15cae..133c99d26d 100644
--- a/app/View/Label.php
+++ b/app/View/Label.php
@@ -105,8 +105,8 @@ class Label implements View
}
}
- if ($template->getSupport1DBarcode()) {
- if ($settings->alt_barcode_enabled) {
+ if ($settings->alt_barcode_enabled) {
+ if ($template->getSupport1DBarcode()) {
$barcode1DType = $settings->label2_1d_type;
$barcode1DType = ($barcode1DType == 'default') ?
(($settings->alt_barcode_enabled) ? $settings->alt_barcode : null) :