Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 7d5a4b8

Browse files
bug fix
1 parent c157815 commit 7d5a4b8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/includes/footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<footer class="main-footer text-sm">
99
<strong><a href="https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code" target="_blank">PHP Qrcode Generator</a> by </strong> Giandonato Inverso
1010
<div class="float-right d-none d-sm-inline-block">
11-
<b>Version</b> 2.2.5
11+
<b>Version</b> 2.2.6
1212
</div>
1313
</footer>
1414
</div>

src/lib/Qrcode/Qrcode.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,13 @@ public function deleteQrcode($id, $async = false) {
171171
}
172172

173173
if ($status)
174-
if (!$async)
174+
if (!$async) {
175175
$this->info('Qr code deleted successfully!');
176+
}
176177
else
177-
$this->failure('Unable to delete qr code');
178+
if (!$async) {
179+
$this->failure('Unable to delete qr code');
180+
}
178181
}
179182

180183
/**

0 commit comments

Comments
 (0)