Skip to content

Commit

Permalink
Less unnecessary exceptions means more fun
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne committed Jun 11, 2015
1 parent 7d96213 commit 0ec1207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScriptViewCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(GoogleTagManager $googleTagManager)
*/
public function create(View $view)
{
if (empty($this->googleTagManager->id())) {
if ($this->googleTagManager->isEnabled() && empty($this->googleTagManager->id())) {
throw new ApiKeyNotSetException();
}

Expand Down

0 comments on commit 0ec1207

Please sign in to comment.