diff --git a/api/print.php b/api/print.php index d627a36f6..efe71df43 100644 --- a/api/print.php +++ b/api/print.php @@ -97,7 +97,11 @@ function applyQR($sourceResource, $qrPath, $x, $y) { list($qrWidth, $qrHeight) = getimagesize($filename_codes); - $offset = $config['print']['qrOffset']; + if (is_numeric($config['print']['qrOffset'])) { + $offset = $config['print']['qrOffset']; + } else { + $offset = 10; + } switch ($config['print']['qrPosition']) { case 'topLeft':