Skip to content

Commit d617e04

Browse files
committed
Internal: Fix ErrorCorrectionLevel::MEDIUM constant usage
1 parent e117d3f commit d617e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/certificate.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ public function generateQRImage($text, $path)
518518
$qrCode->setSize(120);
519519
$qrCode->setMargin(5);
520520
$qrCode->setWriterByName('png');
521-
$qrCode->setErrorCorrectionLevel(ErrorCorrectionLevel::MEDIUM());
521+
$qrCode->setErrorCorrectionLevel(ErrorCorrectionLevel::MEDIUM);
522522
$qrCode->setForegroundColor(['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0]);
523523
$qrCode->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]);
524524
$qrCode->setValidateResult(false);

0 commit comments

Comments
 (0)