We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e00d5bf commit 4eb37e0Copy full SHA for 4eb37e0
QrEncode/QrEncoder.php
@@ -120,8 +120,8 @@ public function encodeQrCode($contents)
120
} else {
121
throw new QrEncoderException('QR encoder internal error');
122
}
123
- $image = imagecreatefrompng($pngPath);
124
- if (!isset($image)) {
+ $image = @imagecreatefrompng($pngPath);
+ if ($image === false) {
125
throw new QrEncoderException('GD lib internal error');
126
127
// Delete file created by qrencode
0 commit comments