Skip to content

Commit

Permalink
Fixed === to == (PHP is loosely typed)
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jan 29, 2014
1 parent 5ec87e8 commit 580590b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ public function getView($assetId = null)
$settings = Setting::getSettings();

$qr_code = (object) array(
'display' => $settings->qr_code === '1',
'display' => $settings->qr_code == '1',
'height' => $this->qrCodeDimensions['height'],
'width' => $this->qrCodeDimensions['width'],
'url' => route('qr_code/hardware', $asset->id)
Expand Down Expand Up @@ -561,7 +561,7 @@ public function getQrCode($assetId = null)
$settings = Setting::getSettings();

if ($settings->qr_code === '1') {
$asset = Asset::find($assetId);
$asset = Asset::find($assetId);
if (isset($asset->id)) {
$renderer = new \BaconQrCode\Renderer\Image\Png;
$renderer->setWidth($this->qrCodeDimensions['height'])
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/admin/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getIndex()
public function getEdit()
{
$settings = Setting::orderBy('created_at', 'DESC')->paginate(10);
$is_gd_installed = !!extension_loaded('gd');
$is_gd_installed = extension_loaded('gd');
return View::make('backend/settings/edit', compact('settings', 'is_gd_installed'));
}

Expand Down

0 comments on commit 580590b

Please sign in to comment.