From f5baeb8fa20e74ec6621e2b46b857101eaaa9e4a Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 3 Aug 2023 11:34:29 +0000 Subject: [PATCH] fixed "no active label"-detection --- application/controllers/Labels.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Labels.php b/application/controllers/Labels.php index d393be90..9a81d396 100644 --- a/application/controllers/Labels.php +++ b/application/controllers/Labels.php @@ -156,11 +156,11 @@ class Labels extends CI_Controller { function prepareLabel($qsos, $jscall = false, $offset = 1) { $this->load->model('labels_model'); $label = $this->labels_model->getDefaultLabel(); - $label->font='DejaVuSans'; // Fix font to DejaVuSans try { if ($label) { + $label->font='DejaVuSans'; // Fix font to DejaVuSans $ptype=$this->labels_model->getPaperType($label->paper_type_id); // fetch papersize out of paper-table if (($ptype->paper_id ?? '') != '') { $pdf = new PDF_Label(array(