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

Commit

Permalink
Fixed check for stored plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
leoloso committed Dec 17, 2020
1 parent a3b1930 commit 3e3d8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function (): void {
// and the current plugin's version are different
// It could also be false from the first time we install the plugin
$storedVersion = \get_option(self::OPTION_PLUGIN_VERSION, \GRAPHQL_API_VERSION);
if ($storedVersion === false || $storedVersion == \GRAPHQL_API_VERSION) {
if (!$storedVersion || $storedVersion == \GRAPHQL_API_VERSION) {
return;
}
// Update to the current version
Expand Down

0 comments on commit 3e3d8c4

Please sign in to comment.