Skip to content

Commit

Permalink
Update tools.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloodsoul committed Sep 21, 2015
1 parent 99a4ce4 commit b45e436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
switch ($_GET["action"])
{
case "compare_version":
if (strpos($_GET["sample"], "x") > -1)
if (strpos($_GET["sample"], "x") !== false)
{
if (version_compare(str_replace("x", "0", $_GET["sample"]), $_GET["latest"]) != 1 && version_compare(str_replace("x", "999", $_GET["sample"]), $_GET["latest"]) != -1)
{
Expand Down

0 comments on commit b45e436

Please sign in to comment.