Skip to content

Commit

Permalink
CS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jul 3, 2017
1 parent 333d755 commit b5e5e2d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions program/steps/addressbook/show.inc
Expand Up @@ -42,12 +42,8 @@ if ($cid && ($record = ($CONTACT_RECORD ?: $CONTACTS->get_record($cid, true))))
// get address book name (for display)
rcmail_set_sourcename($CONTACTS);

// Disable qr-code if php-gd is not installed
// Disable qr-code if Endriod's QrCode is not installed
$OUTPUT->set_env(
'qrcode',
function_exists('imagecreate') && class_exists('Endroid\QrCode\QrCode')
);
// Disable qr-code if php-gd or Endroid's QrCode is not installed
$OUTPUT->set_env('qrcode', function_exists('imagecreate') && class_exists('Endroid\QrCode\QrCode'));
$OUTPUT->add_label('qrcode');

$OUTPUT->add_handlers(array(
Expand Down

0 comments on commit b5e5e2d

Please sign in to comment.