Skip to content

Commit

Permalink
🩹 fix: Check if package is not false, otherwise license has expired
Browse files Browse the repository at this point in the history
  • Loading branch information
tombroucke committed Nov 4, 2024
1 parent 7fb53a4 commit 8eac5ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Recipes/AdminColumnsPro.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function licenseKeyError(): ?string
'subscription_key' => $this->package->getSecret('license_key'),
]);

$active = ($response['code'] ?? null) !== 'error';
$active = ($response['code'] ?? null) !== 'error' && ($response['package'] ?? false) !== false;
$message = isset($response['message']) ? 'Answer from remote server: '.$response['message'] : 'Invalid license key.';

return $active ? null : $message;
Expand Down

0 comments on commit 8eac5ad

Please sign in to comment.