Skip to content

Commit b9509ec

Browse files
committed
[Issue][5533] - Version comparison.
1 parent a1f7d28 commit b9509ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/Services/Helpers/SoftwareVersionService.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ public function isLatestPanel(): bool
6565
return true;
6666
}
6767

68-
return version_compare(config('app.version'), $this->getPanel()) >= 0;
68+
return version_compare(
69+
ltrim(config('app.version'), 'vV'),
70+
ltrim($this->getPanel(), 'vV'),
71+
'>='
72+
);
6973
}
7074

7175
/**

0 commit comments

Comments
 (0)