mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 02:09:58 +01:00
Fixing PHP warnings in qrcode.php
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<style>
|
||||
body {
|
||||
background: #fff;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.qrcode {
|
||||
@@ -32,7 +33,8 @@ if($auth) {
|
||||
echo '<div class="qrcode">';
|
||||
require_once("../../vendor/qrcode.php");
|
||||
$qr = QRCode::getMinimumQRCode($pwhash, QR_ERROR_CORRECT_LEVEL_Q);
|
||||
$qr->printSVG("10px");
|
||||
// The size of each block (in pixels) should be an integer
|
||||
$qr->printSVG(10);
|
||||
echo "</div>";
|
||||
echo 'Raw API Token: <code class="token">' . $pwhash . "</code></div>";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user