Skip to content

Commit

Permalink
fix issue #51
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmanramsi authored Aug 23, 2023
1 parent bea9b8a commit a88b564
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 2.0.6.3 : 23 Aug 2023
- Fix false update notification.

### 2.0.6.0 : 15 Juli 2023

- Fix logging error by OJTPlugin make error reporting not working
Expand Down
2 changes: 1 addition & 1 deletion OjtPageHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function checkUpdate($args, $request)
try {
$response = $this->ojtPlugin->getHttpClient()->get($url);
$json = json_decode((string) $response->getBody(), true);
$json['updateAvailable'] = version_compare($this->ojtPlugin->getPluginVersion(), $json['latest_version']) == -1;
$json['updateAvailable'] = version_compare($this->ojtPlugin->getPluginVersion(), $json['latest_version'], '<');

return showJson($json);
} catch (\Throwable $th) {
Expand Down
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<version>
<application>ojtPlugin</application>
<type>plugins.generic</type>
<release>2.0.6.2</release>
<date>2023-07-15</date>
<release>2.0.6.3</release>
<date>2023-08-23</date>
<lazy-load>0</lazy-load>
<class>OjtPlugin</class>
</version>

0 comments on commit a88b564

Please sign in to comment.