Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Commit

Permalink
Fixed an issue where the registration form block would not render.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpi committed Nov 14, 2016
1 parent 53be329 commit 0a7b678
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Plugin/Block/RngRegistrationBlock.php
Expand Up @@ -6,7 +6,6 @@
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Entity\EntityFormBuilderInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\rng\Entity\Registration;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\rng\EventManagerInterface;
Expand Down Expand Up @@ -86,7 +85,7 @@ public function build() {
$registration_types = $event_meta->getRegistrationTypes();

// Just want one registration type.
if (count($registration_types) !== 1) {
if (count($registration_types) === 1) {
$registration_type = reset($registration_types);
$registration = Registration::create([
'type' => $registration_type->id(),
Expand Down

0 comments on commit 0a7b678

Please sign in to comment.