Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ConsoleTVs committed May 18, 2017
1 parent 3618cfe commit d3d0de3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controllers/APIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class APIController extends Controller
*/
public function __construct()
{
Stripe::setApiKey(decrypt(Settings::first()->stripe_secret));
$key = Settings::first()->stripe_secret ? decrypt(Settings::first()->stripe_secret) : '';
Stripe::setApiKey($key);
}

/**
Expand Down

0 comments on commit d3d0de3

Please sign in to comment.