diff --git a/app/controllers/admin/AssetsController.php b/app/controllers/admin/AssetsController.php index 5e0acaf1e506..59280e85763e 100644 --- a/app/controllers/admin/AssetsController.php +++ b/app/controllers/admin/AssetsController.php @@ -560,7 +560,7 @@ public function getQrCode($assetId = null) { $settings = Setting::getSettings(); - if ($settings->qr_code === '1') { + if ($settings->qr_code == '1') { $asset = Asset::find($assetId); if (isset($asset->id)) { $renderer = new \BaconQrCode\Renderer\Image\Png;