Skip to content

Commit 580590b

Browse files
committed
Fixed === to == (PHP is loosely typed)
1 parent 5ec87e8 commit 580590b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/controllers/admin/AssetsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ public function getView($assetId = null)
533533
$settings = Setting::getSettings();
534534

535535
$qr_code = (object) array(
536-
'display' => $settings->qr_code === '1',
536+
'display' => $settings->qr_code == '1',
537537
'height' => $this->qrCodeDimensions['height'],
538538
'width' => $this->qrCodeDimensions['width'],
539539
'url' => route('qr_code/hardware', $asset->id)
@@ -561,7 +561,7 @@ public function getQrCode($assetId = null)
561561
$settings = Setting::getSettings();
562562

563563
if ($settings->qr_code === '1') {
564-
$asset = Asset::find($assetId);
564+
$asset = Asset::find($assetId);
565565
if (isset($asset->id)) {
566566
$renderer = new \BaconQrCode\Renderer\Image\Png;
567567
$renderer->setWidth($this->qrCodeDimensions['height'])

app/controllers/admin/SettingsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getIndex()
3838
public function getEdit()
3939
{
4040
$settings = Setting::orderBy('created_at', 'DESC')->paginate(10);
41-
$is_gd_installed = !!extension_loaded('gd');
41+
$is_gd_installed = extension_loaded('gd');
4242
return View::make('backend/settings/edit', compact('settings', 'is_gd_installed'));
4343
}
4444

0 commit comments

Comments
 (0)